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.
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)
-
ghc-prim GHC.Prim No documentation available.
fromEnum :: Enum a => a -> Inthedgehog Hedgehog.Internal.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.
-
hedgehog Hedgehog.Internal.Prelude Convert from an Int.
updateNumCapabilities :: WorkerCount -> IO ()hedgehog Hedgehog.Internal.Queue Update the number of capabilities but never set it lower than it already is.
toEnumDef :: (Enum a, Bounded a) => a -> Int -> asafe Safe No documentation available.
toEnumMay :: (Enum a, Bounded a) => Int -> Maybe asafe Safe No documentation available.
toEnumNote :: (Partial, Enum a, Bounded a) => String -> Int -> asafe Safe No documentation available.
toEnumSafe :: (Enum a, Bounded a) => Int -> asafe Safe No documentation available.
KeySizeEnum :: [Int] -> KeySizeSpecifiercrypton Crypto.Cipher.Types one of the specified values