Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Random m a where
- random :: forall r x. (Member Random r, Random x) => Sem r x
- randomR :: forall r x. (Member Random r, Random x) => (x, x) -> Sem r x
- runRandom :: forall q r a. RandomGen q => q -> Sem (Random ': r) a -> Sem r (q, a)
- runRandomIO :: Member (Embed IO) r => Sem (Random ': r) a -> Sem r a