Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

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

  1. toDescList :: Enum k => EnumMap k a -> [(k, a)]

    enummapset Data.EnumMap.Strict

    No documentation available.

  2. toList :: Enum k => EnumMap k a -> [(k, a)]

    enummapset Data.EnumMap.Strict

    No documentation available.

  3. fromAscList :: Enum k => [k] -> EnumSet k

    enummapset Data.EnumSet

    No documentation available.

  4. fromDistinctAscList :: Enum k => [k] -> EnumSet k

    enummapset Data.EnumSet

    No documentation available.

  5. fromList :: Enum k => [k] -> EnumSet k

    enummapset Data.EnumSet

    No documentation available.

  6. toAscList :: Enum k => EnumSet k -> [k]

    enummapset Data.EnumSet

    No documentation available.

  7. toDescList :: Enum k => EnumSet k -> [k]

    enummapset Data.EnumSet

    No documentation available.

  8. toList :: Enum k => EnumSet k -> [k]

    enummapset Data.EnumSet

    No documentation available.

  9. toList :: Foldable t => t a -> [a]

    ghc-internal GHC.Internal.Data.Foldable

    List of elements of a structure, from left to right. If the entire list is intended to be reduced via a fold, just fold the structure directly bypassing the list.

    Examples

    Basic usage:
    >>> toList Nothing
    []
    
    >>> toList (Just 42)
    [42]
    
    >>> toList (Left "foo")
    []
    
    >>> toList (Node (Leaf 5) 17 (Node Empty 12 (Leaf 8)))
    [5,17,12,8]
    
    For lists, toList is the identity:
    >>> toList [1, 2, 3]
    [1,2,3]
    

  10. maybeToList :: Maybe a -> [a]

    ghc-internal GHC.Internal.Data.Maybe

    The maybeToList function returns an empty list when given Nothing or a singleton list when given Just.

    Examples

    Basic usage:
    >>> maybeToList (Just 7)
    [7]
    
    >>> maybeToList Nothing
    []
    
    One can use maybeToList to avoid pattern matching when combined with a function that (safely) works on lists:
    >>> import GHC.Internal.Text.Read ( readMaybe )
    
    >>> sum $ maybeToList (readMaybe "3")
    3
    
    >>> sum $ maybeToList (readMaybe "")
    0
    

Page 94 of many | Previous | Next