backward-state-0.1.0.2: A state monad that runs the state in reverse through the computation

Portabilityneeds DoRec
Stabilityexperimental
MaintainerLuke Palmer <lrpalmer@gmail.com>
Safe HaskellSafe-Inferred

Control.Monad.Trans.BackwardState

Description

Backward state monad and transformer, in which m >> n passes the incoming state to n, then passes n's resulting state to m. This can only work lazily.

Documentation

put :: Monad m => s -> BackwardStateT s m ()Source

modify :: Monad m => (s -> s) -> BackwardStateT s m ()Source