Idris2Doc : Control.Monad.State.State

Control.Monad.State.State

Definitions

recordStateT : Type-> (Type->Type) ->Type->Type
  A monad transformer extending an inner monad `m` with state `stateType`.

Updates to the state are applied in the order as the sequence of actions.

Totality: total
Visibility: public export
Constructor: 
ST : (stateType->m (stateType, a)) ->StateTstateTypema

Projection: 
.runStateT' : StateTstateTypema->stateType->m (stateType, a)

Hints:
(Monadf, Alternativef) =>Alternative (StateTstf)
Monadf=>Applicative (StateTstateTypef)
Functorf=>Functor (StateTstateTypef)
HasIOm=>HasIO (StateTstateTypem)
Monadm=>Monad (StateTstateTypem)
MonadErrorem=>MonadErrore (StateTrm)
MonadReaderrm=>MonadReaderr (StateTsm)
Monadm=>MonadStatestateType (StateTstateTypem)
MonadTrans (StateTstateType)
MonadWriterwm=>MonadWriterw (StateTsm)
.runStateT' : StateTstateTypema->stateType->m (stateType, a)
Totality: total
Visibility: public export
runStateT' : StateTstateTypema->stateType->m (stateType, a)
Totality: total
Visibility: public export
runStateT : stateType->StateTstateTypema->m (stateType, a)
  Unwrap and apply a StateT monad computation.

Totality: total
Visibility: public export
evalStateT : Functorm=>stateType->StateTstateTypema->ma
  Unwrap and apply a StateT monad computation, but discard the final state.

Totality: total
Visibility: public export
execStateT : Functorm=>stateType->StateTstateTypema->mstateType
  Unwrap and apply a StateT monad computation, but discard the resulting value.

Totality: total
Visibility: public export
mapStateT : (m (s, a) ->n (s, b)) ->StateTsma->StateTsnb
  Map both the return value and final state of a computation using
the given function.

Totality: total
Visibility: public export
State : Type->Type->Type
  The State monad. See the MonadState interface

Totality: total
Visibility: public export
runState : stateType->StatestateTypea-> (stateType, a)
  Unwrap and apply a State monad computation.

Totality: total
Visibility: public export
evalState : stateType->StatestateTypea->a
  Unwrap and apply a State monad computation, but discard the final state.

Totality: total
Visibility: public export
execState : stateType->StatestateTypea->stateType
  Unwrap and apply a State monad computation, but discard the resulting value.

Totality: total
Visibility: public export
mapState : ((s, a) -> (s, b)) ->Statesa->Statesb
  Map both the return value and final state of a computation using
the given function.

Totality: total
Visibility: public export