Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
uniformEnumM :: (Enum a, Bounded a, StatefulGen g m) => g -> m arandom System.Random.Stateful Generates uniformly distributed Enum. One can use it to define a Uniform instance:
data Colors = Red | Green | Blue deriving (Enum, Bounded) instance Uniform Colors where uniformM = uniformEnumM
uniformEnumRM :: (Enum a, StatefulGen g m) => (a, a) -> g -> m arandom System.Random.Stateful Generates uniformly distributed Enum in the given range. One can use it to define a UniformRange instance:
data Colors = Red | Green | Blue deriving (Enum) instance UniformRange Colors where uniformRM = uniformEnumRM inInRange (lo, hi) x = isInRange (fromEnum lo, fromEnum hi) (fromEnum x)
measNumGcs :: Measured -> !Int64criterion Criterion.Types (GC) Number of garbage collections performed. Access using fromInt.
-
criterion Criterion.Types A simple index indicating that this is the nth report.
getNumElements :: (MArray a e m, Ix i) => a i e -> m Intarray Data.Array.Base Returns the number of elements in the array.
-
ghc-prim GHC.Prim No documentation available.
-
lens Control.Lens.Combinators This isomorphism can be used to convert to or from an instance of Enum.
>>> LT^.from enum 0
>>> 97^.enum :: Char 'a'
Note: this is only an isomorphism from the numeric range actually used and it is a bit of a pleasant fiction, since there are questionable Enum instances for Double, and Float that exist solely for [1.0 .. 4.0] sugar and the instances for those and Integer don't cover all values in their range. -
lens Control.Lens.Iso This isomorphism can be used to convert to or from an instance of Enum.
>>> LT^.from enum 0
>>> 97^.enum :: Char 'a'
Note: this is only an isomorphism from the numeric range actually used and it is a bit of a pleasant fiction, since there are questionable Enum instances for Double, and Float that exist solely for [1.0 .. 4.0] sugar and the instances for those and Integer don't cover all values in their range. _NumTyLit :: Prism' TyLit Integerlens Language.Haskell.TH.Lens No documentation available.
AI_NUMERICHOST :: AddrInfoFlagnetwork Network.Socket The HostName argument must be a numeric address in string form, and network name lookups will not be attempted.