urn-random-0.1.0.0: A package for updatable discrete distributions

Safe HaskellSafe
LanguageHaskell2010

Data.Urn.MonadSample

Documentation

class Monad m => MonadSample m where Source #

Instances

MonadSample IO Source # 

Methods

randomWord :: (Word, Word) -> IO Word Source #

MonadSample Gen Source # 

Methods

randomWord :: (Word, Word) -> Gen Word Source #

MonadSample m => MonadSample (MaybeT m) Source # 

Methods

randomWord :: (Word, Word) -> MaybeT m Word Source #

(Monad m, RandomGen g) => MonadSample (RandT g m) Source # 

Methods

randomWord :: (Word, Word) -> RandT g m Word Source #

MonadSample m => MonadSample (ExceptT e m) Source # 

Methods

randomWord :: (Word, Word) -> ExceptT e m Word Source #

MonadSample m => MonadSample (StateT s m) Source # 

Methods

randomWord :: (Word, Word) -> StateT s m Word Source #

MonadSample m => MonadSample (StateT s m) Source # 

Methods

randomWord :: (Word, Word) -> StateT s m Word Source #

(MonadSample m, Monoid w) => MonadSample (WriterT w m) Source # 

Methods

randomWord :: (Word, Word) -> WriterT w m Word Source #

(MonadSample m, Monoid w) => MonadSample (WriterT w m) Source # 

Methods

randomWord :: (Word, Word) -> WriterT w m Word Source #

MonadSample m => MonadSample (IdentityT * m) Source # 
MonadSample m => MonadSample (ContT * r m) Source # 

Methods

randomWord :: (Word, Word) -> ContT * r m Word Source #

MonadSample m => MonadSample (ReaderT * r m) Source # 

Methods

randomWord :: (Word, Word) -> ReaderT * r m Word Source #

(MonadSample m, Monoid w) => MonadSample (RWST r w s m) Source # 

Methods

randomWord :: (Word, Word) -> RWST r w s m Word Source #

(MonadSample m, Monoid w) => MonadSample (RWST r w s m) Source # 

Methods

randomWord :: (Word, Word) -> RWST r w s m Word Source #