Hoogle Search

Within LTS Haskell 24.49 (ghc-9.10.3)

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

  1. enumFromTo :: Enum a => a -> a -> [a]

    ghc-lib-parser GHC.Prelude.Basic

    Used in Haskell's translation of [n..m] with [n..m] = enumFromTo n m, a possible implementation being

    enumFromTo n m
    | n <= m = n : enumFromTo (succ n) m
    | otherwise = []
    
    

    Examples

    • enumFromTo 6 10 :: [Int] = [6,7,8,9,10]
    • enumFromTo 42 1 :: [Integer] = []

  2. enumeration :: Show a => String -> [a] -> TextParser a

    polyparse Text.Parse

    Parse one of the given nullary constructors (an enumeration). The string argument is the name of the type, and the list argument should contain all of the possible enumeration values.

  3. enumeration :: Show a => String -> [a] -> TextParser a

    polyparse Text.Parse.ByteString

    Parse one of the given nullary constructors (an enumeration). The string argument is the name of the type, and the list argument should contain all of the possible enumeration values.

  4. enumerate :: HasTrie a => (a :->: b) -> [(a, b)]

    MemoTrie Data.MemoTrie

    List the trie elements. Order of keys (:: a) is always the same.

  5. enumerateGeneric :: (Generic a, HasTrie (Reg a)) => ((a :->: b) -> Reg a :->: b) -> (a :->: b) -> [(a, b)]

    MemoTrie Data.MemoTrie

    Generic-friendly default for enumerate

  6. enumFromMutableN :: forall (arr :: Type -> Type) a m . (Contiguous arr, Element arr a, PrimMonad m, Enum a) => a -> Int -> m (Mutable arr (PrimState m) a)

    contiguous Data.Primitive.Contiguous

    Yield a mutable array of the given length containing the values x, succ x, succ (succ x) etc.

  7. enumFromN :: (Contiguous arr, Element arr a, Enum a) => a -> Int -> arr a

    contiguous Data.Primitive.Contiguous

    Yield an array of the given length containing the values x, succ x, succ (succ x) etc.

  8. enumDeriver :: Deriver

    domain Domain

    Derives Enum for enums or sums having no members in all variants. Requires to have the StandaloneDeriving compiler extension enabled.

  9. enumFrom' :: Expr -> Expr

    express Data.Express.Fixtures

    enumFrom lifted over Exprs.

    > enumFrom' zero
    enumFrom 0 :: [Int]
    
    Works for Ints, Bools and Chars.

  10. enumFromThen' :: Expr -> Expr -> Expr

    express Data.Express.Fixtures

    enumFromThen lifted over Exprs

    > enumFromThen' zero ten
    enumFromThen 0 10 :: [Int]
    

Page 58 of many | Previous | Next