Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
gRandomRSums :: (ADT a, Constraints a Random, RandomGen g) => (a, a) -> g -> [a]one-liner-instances System.Random.OneLiner randomRs implemented by repeatedly calling gRandomRSum. If given a range of items made with different constructors, will be error!
gRandomSum :: (ADT a, Constraints a Random, RandomGen g) => g -> (a, g)one-liner-instances System.Random.OneLiner random implemented by selecting a random constructor and sequencing random for all components.
gRandomSums :: (ADT a, Constraints a Random, RandomGen g) => g -> [a]one-liner-instances System.Random.OneLiner randoms implemented by repeatedly calling gRandomSum.
getGRandomSum :: GRandomSum a -> aone-liner-instances System.Random.OneLiner No documentation available.
-
one-liner-instances System.Random.Stateful.OneLiner If a is a data type whose fields are all instances of Uniform, then GUniform a has a Uniform instance. Will one day be able to be used with DerivingVia syntax, to derive instances automatically. A version of GUniform that works for data types with multiple constructors. If your type has only one constructor, it might be more performant to use GUniform. Note that the "ranged" variants are partial: if given a range of items made with different constructors, will be error!
GUniformSum :: a -> GUniformSum aone-liner-instances System.Random.Stateful.OneLiner No documentation available.
-
one-liner-instances System.Random.Stateful.OneLiner gRandomSumM :: forall a g m r . (ADT a, Constraints a Random, RandomGenM g r m) => g -> m aone-liner-instances System.Random.Stateful.OneLiner gUniformRSumM :: (ADT a, Constraints a UniformRange, StatefulGen g m) => (a, a) -> g -> m aone-liner-instances System.Random.Stateful.OneLiner randomR implemented by sequencing randomR between all components. If given a range of items made with different constructors, will be error!
gUniformSumListM :: (ADT a, Constraints a Uniform, StatefulGen g m) => Int -> g -> m [a]one-liner-instances System.Random.Stateful.OneLiner No documentation available.