Copyright | (c) Eamon Olive 2020 (c) Louis Hyde 2020 |
---|---|
License | AGPL-3 |
Maintainer | ejolive97@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Module for UniformRandom
, a wrapper that provides an instance of MonadChoice
when it wraps a member of MonadRandom
.
This is done by using the uniform
function as choose
.
Synopsis
- newtype UniformRandom r a = UniformRandom (r a)
- lift :: r a -> UniformRandom r a
- colift :: UniformRandom r a -> r a
Documentation
newtype UniformRandom r a Source #
UniformRandom (r a) |
Instances
lift :: r a -> UniformRandom r a Source #
An alias for UniformRandom
colift :: UniformRandom r a -> r a Source #
A function to unwrap a UniformRandom