Hoogle Search
Within LTS Haskell 24.31 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
enumeration :: Show a => String -> [a] -> TextParser apolyparse 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.
enumerate :: HasTrie a => (a :->: b) -> [(a, b)]MemoTrie Data.MemoTrie List the trie elements. Order of keys (:: a) is always the same.
-
MemoTrie Data.MemoTrie -
contiguous Data.Primitive.Contiguous Yield a mutable array of the given length containing the values x, succ x, succ (succ x) etc.
enumFromN :: (Contiguous arr, Element arr a, Enum a) => a -> Int -> arr acontiguous Data.Primitive.Contiguous Yield an array of the given length containing the values x, succ x, succ (succ x) etc.
-
domain Domain Derives Enum for enums or sums having no members in all variants. Requires to have the StandaloneDeriving compiler extension enabled.
-
Sets of enumeration values represented by machine words With this package you can create a type safe interface to flag sets. It is intended for interfacing to C libraries via FFI, where Word8, Word16, or Word32 types are commonly used to store bit vectors. E.g. the type EnumSet Word16 Ordering represents a flag set stored in a Word16 that supports the flags LT, EQ, GT. This package is similar to the bitset package and the Data.Edison.Coll.EnumSet module in the edison package, however our implementation allows you to choose the embedding type and thus the maximum size of the set. See also data-flags and Data.EnumSet in enummapset.
-
express Data.Express.Fixtures > enumFrom' zero enumFrom 0 :: [Int]
Works for Ints, Bools and Chars. enumFromThen' :: Expr -> Expr -> Exprexpress Data.Express.Fixtures enumFromThen lifted over Exprs
> enumFromThen' zero ten enumFromThen 0 10 :: [Int]
enumFromThenTo' :: Expr -> Expr -> Expr -> Exprexpress Data.Express.Fixtures enumFromThenTo lifted over Exprs.
> enumFromThenTo' zero two ten enumFromThenTo 0 2 10 :: [Int]