Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. listValName :: Name

    deriving-compat Data.Deriving.Internal

    No documentation available.

  2. listToMaybe :: [a] -> Maybe a

    ghc-internal GHC.Internal.Data.Maybe

    The listToMaybe function returns Nothing on an empty list or Just a where a is the first element of the list.

    Examples

    Basic usage:
    >>> listToMaybe []
    Nothing
    
    >>> listToMaybe [9]
    Just 9
    
    >>> listToMaybe [1,2,3]
    Just 1
    
    Composing maybeToList with listToMaybe should be the identity on singleton/empty lists:
    >>> maybeToList $ listToMaybe [5]
    [5]
    
    >>> maybeToList $ listToMaybe []
    []
    
    But not on lists with more than one element:
    >>> maybeToList $ listToMaybe [1,2,3]
    [1]
    

  3. listToDot :: PrintDot a => [a] -> DotCode

    graphviz Data.GraphViz.Printing

    The quoted form of unqtListToDot; defaults to wrapping double quotes around the result of unqtListToDot (since the default implementation has characters that must be quoted).

  4. listToDot :: PrintDot a => [a] -> DotCode

    graphviz Data.GraphViz.Types

    The quoted form of unqtListToDot; defaults to wrapping double quotes around the result of unqtListToDot (since the default implementation has characters that must be quoted).

  5. listofstringopt :: String -> RawOpts -> [String]

    hledger-lib Hledger.Data.RawOptions

    No documentation available.

  6. listToBag :: [a] -> Bag a

    ghc-lib-parser GHC.Data.Bag

    No documentation available.

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

    ghc-lib-parser GHC.Data.SmallArray

    Convert a list into an array.

  8. 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.

  9. 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
    , ...
    ]
    

  10. 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
    , ...
    ]
    

Page 23 of many | Previous | Next