| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Carrier.Random.Instances
Contents
Description
This module exists to export instances of PrimMonad for the fused-effects
ecosystem. These instances are trivially derivable, since all carrier types are
monad transformers, but are boring to have to write by hand.
This module is most useful when porting monad transformer stacks that already use
mwc-random to the fused-effects ecosystem, or for when you have very
fine-grained need to control the behavior or state of a random number generator.
For new code, the Random effect will provide a more genial interface.
Orphan instances
| PrimMonad m => PrimMonad (ChooseC m) Source # | |
| PrimMonad m => PrimMonad (CullC m) Source # | |
| PrimMonad m => PrimMonad (CutC m) Source # | |
| PrimMonad m => PrimMonad (EmptyC m) Source # | |
| PrimMonad m => PrimMonad (FailC m) Source # | |
| PrimMonad m => PrimMonad (FreshC m) Source # | |
| PrimMonad m => PrimMonad (LiftC m) Source # | |
| PrimMonad m => PrimMonad (ThrowC r m) Source # | |
| PrimMonad m => PrimMonad (ErrorC r m) Source # | |
| PrimMonad m => PrimMonad (ReaderC r m) Source # | |
| PrimMonad m => PrimMonad (StateC r m) Source # | |
| PrimMonad m => PrimMonad (WriterC r m) Source # | |
| PrimMonad m => PrimMonad (StateC r m) Source # | |