Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Random m a where
- random :: forall x. Random x => forall r. Member Random r => Semantic r x
- randomR :: forall x. Random x => forall r. Member Random r => (x, x) -> Semantic r x
- runRandom :: forall q r a. (Typeable q, RandomGen q) => q -> Semantic (Random ': r) a -> Semantic r (q, a)
- runRandomIO :: Member (Lift IO) r => Semantic (Random ': r) a -> Semantic r a
Effect
data Random m a where Source #
An effect capable of providing Random
values.
Instances
type DefiningModule (Random :: k -> Type -> Type) Source # | |
Defined in Polysemy.Random |