chatty-0.4.0.0: Some monad transformers and typeclasses to simplify I/O on a transformer stack.

Safe HaskellNone

System.Chatty.Misc

Description

Provides typeclasses for clocks and randomizer environments

Synopsis

Documentation

class Monad m => MonadRandom m whereSource

Typeclass for all monads that may provide random numbers

Methods

mrandom :: Random r => m rSource

Get a single random number

mrandomR :: Random r => (r, r) -> m rSource

Get a single random number in the given range