rev-state-0.2.0: Reverse State monad transformer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Monad.RevState.Class

Documentation

class MonadFix m => MonadRevState s m | m -> s where Source #

Minimal complete definition

get, put | state

Methods

get :: m s Source #

put :: s -> m () Source #

state :: (s -> (a, s)) -> m a Source #

Instances

Instances details
MonadFix m => MonadRevState s (StateT s m) Source # 
Instance details

Defined in Control.Monad.RevState.Class

Methods

get :: StateT s m s Source #

put :: s -> StateT s m () Source #

state :: (s -> (a, s)) -> StateT s m a Source #

modify :: MonadRevState s m => (s -> s) -> m () Source #

gets :: MonadRevState s m => (s -> a) -> m a Source #