Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic client monad and related operations.
Synopsis
- class MonadStateRead m => MonadClient m where
- getClient :: MonadClient m => m StateClient
- putClient :: MonadClient m => StateClient -> m ()
- debugPossiblyPrint :: MonadClient m => Text -> m ()
- rndToAction :: MonadClient m => Rnd a -> m a
- rndToActionForget :: MonadClient m => Rnd a -> m a
Basic client monads
class MonadStateRead m => MonadClient m where Source #
Monad for writing to client state.
getsClient :: (StateClient -> a) -> m a Source #
modifyClient :: (StateClient -> StateClient) -> m () Source #
Assorted primitives
getClient :: MonadClient m => m StateClient Source #
putClient :: MonadClient m => StateClient -> m () Source #
debugPossiblyPrint :: MonadClient m => Text -> m () Source #
rndToAction :: MonadClient m => Rnd a -> m a Source #
Invoke pseudo-random computation with the generator kept in the state.
rndToActionForget :: MonadClient m => Rnd a -> m a Source #
Invoke pseudo-random computation, don't change generator kept in state.