Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
chooseEnum :: Enum a => (a, a) -> Gen amassiv-test Test.Massiv.Utils A fast implementation of choose for enumerated types.
coarbitraryEnum :: Enum a => a -> Gen b -> Gen bmassiv-test Test.Massiv.Utils A coarbitrary implementation for enums.
shrinkBoundedEnum :: (Bounded a, Enum a, Eq a) => a -> [a]massiv-test Test.Massiv.Utils Shrink an element of a bounded enumeration.
Example
data MyEnum = E0 | E1 | E2 | E3 | E4 | E5 | E6 | E7 | E8 | E9 deriving (Bounded, Enum, Eq, Ord, Show)
>>> shrinkBoundedEnum E9 [E0,E5,E7,E8]
>>> shrinkBoundedEnum E5 [E0,E3,E4]
>>> shrinkBoundedEnum E0 []
fromEnum :: Enum a => a -> Intprelude-compat Prelude2010 Convert to an Int. It is implementation-dependent what fromEnum returns when applied to a value that is too large to fit in an Int.
-
prelude-compat Prelude2010 Convert from an Int.
casesEnum :: (Bounded a, Enum a) => Cases arebase Rebase.Prelude The list of all possible values of an enumerable data type.
fromEnum :: Enum a => a -> Intrebase Rebase.Prelude Convert to an Int. It is implementation-dependent what fromEnum returns when applied to a value that is too large to fit in an Int.
-
rebase Rebase.Prelude Convert from an Int.
parseNumber :: (Exit m, Read a) => String -> (a -> Bool) -> String -> String -> m ashell-utility Shell.Utility.ParseArgument No documentation available.
integrateNum :: (C a, C a v) => Int -> (a, a) -> (a -> v) -> vsynthesizer-core Synthesizer.Plain.Filter.Recursive.AllpassPoly No documentation available.