Hoogle Search

Within LTS Haskell 24.60 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. listToArray :: Int -> (e -> Int) -> (e -> a) -> [e] -> SmallArray a

    ghc-lib-parser GHC.Data.SmallArray

    Convert a list into an array.

  2. listBits :: Vector Bit -> [Int]

    bitvec Data.Bit

    Return 0-based indices of set bits in a vector.

    >>> :set -XOverloadedLists
    
    >>> listBits [1,1,0,1,0,1]
    [0,1,3,5]
    

  3. listBits :: Vector Bit -> [Int]

    bitvec Data.Bit.ThreadSafe

    Return 0-based indices of set bits in a vector.

    >>> :set -XOverloadedLists
    
    >>> listBits [1,1,0,1,0,1]
    [0,1,3,5]
    

  4. listUntilEoi :: Parser e s a -> Parser e s [a]

    bytesmith Data.Bytes.Parser

    Apply the parser repeatedly until there is no more input left to consume. Collects the results into a list.

  5. listVars :: Typeable a => String -> a -> [Expr]

    express Data.Express

    Generate an infinite list of variables based on a template and a given type. (cf. listVarsAsTypeOf)

    > putL 10 $ listVars "x" (undefined :: Int)
    [ x :: Int
    , y :: Int
    , z :: Int
    , x' :: Int
    , y' :: Int
    , z' :: Int
    , x'' :: Int
    , ...
    ]
    
    > putL 10 $ listVars "p" (undefined :: Bool)
    [ p :: Bool
    , q :: Bool
    , r :: Bool
    , p' :: Bool
    , q' :: Bool
    , r' :: Bool
    , p'' :: Bool
    , ...
    ]
    

  6. listVarsAsTypeOf :: String -> Expr -> [Expr]

    express Data.Express

    Generate an infinite list of variables based on a template and the type of a given Expr. (cf. listVars)

    > let one = val (1::Int)
    > putL 10 $ "x" `listVarsAsTypeOf` one
    [ x :: Int
    , y :: Int
    , z :: Int
    , x' :: Int
    , ...
    ]
    
    > let false = val False
    > putL 10 $ "p" `listVarsAsTypeOf` false
    [ p :: Bool
    , q :: Bool
    , r :: Bool
    , p' :: Bool
    , ...
    ]
    

  7. listVarsWith :: [Expr] -> Expr -> [Expr]

    express Data.Express

    O(n+m). Like lookupNames but returns a list of variables encoded as Exprs.

  8. listVars :: Typeable a => String -> a -> [Expr]

    express Data.Express.Hole

    Generate an infinite list of variables based on a template and a given type. (cf. listVarsAsTypeOf)

    > putL 10 $ listVars "x" (undefined :: Int)
    [ x :: Int
    , y :: Int
    , z :: Int
    , x' :: Int
    , y' :: Int
    , z' :: Int
    , x'' :: Int
    , ...
    ]
    
    > putL 10 $ listVars "p" (undefined :: Bool)
    [ p :: Bool
    , q :: Bool
    , r :: Bool
    , p' :: Bool
    , q' :: Bool
    , r' :: Bool
    , p'' :: Bool
    , ...
    ]
    

  9. listVarsAsTypeOf :: String -> Expr -> [Expr]

    express Data.Express.Hole

    Generate an infinite list of variables based on a template and the type of a given Expr. (cf. listVars)

    > let one = val (1::Int)
    > putL 10 $ "x" `listVarsAsTypeOf` one
    [ x :: Int
    , y :: Int
    , z :: Int
    , x' :: Int
    , ...
    ]
    
    > let false = val False
    > putL 10 $ "p" `listVarsAsTypeOf` false
    [ p :: Bool
    , q :: Bool
    , r :: Bool
    , p' :: Bool
    , ...
    ]
    

  10. listVarsWith :: [Expr] -> Expr -> [Expr]

    express Data.Express.Instances

    O(n+m). Like lookupNames but returns a list of variables encoded as Exprs.

Page 24 of many | Previous | Next