instance
instSubsingletonStateM
{σ : Type u_1}
{α : Type u_1}
[Subsingleton σ]
[Subsingleton α]
:
Subsingleton (StateM σ α)
@[inline]
Instances For
instance
StateT.instAlternativeStateT
{σ : Type u}
{m : Type u → Type v}
[Monad m]
[Alternative m]
:
Alternative (StateT σ m)
@[always_inline]
instance
StateT.instMonadFunctorStateT
(σ : Type u_1)
(m : Type u_1 → Type u_2)
[Monad m]
:
MonadFunctor m (StateT σ m)
@[always_inline]
instance
StateT.instMonadExceptOfStateT
{σ : Type u}
{m : Type u → Type v}
[Monad m]
(ε : Type u_1)
[MonadExceptOf ε m]
:
MonadExceptOf ε (StateT σ m)
instance
instMonadStateOfStateT
{σ : Type u}
{m : Type u → Type v}
[Monad m]
:
MonadStateOf σ (StateT σ m)
@[always_inline]
instance
StateT.monadControl
(σ : Type u)
(m : Type u → Type v)
[Monad m]
:
MonadControl m (StateT σ m)
@[always_inline]
instance
StateT.tryFinally
{m : Type u → Type v}
{σ : Type u}
[MonadFinally m]
[Monad m]
:
MonadFinally (StateT σ m)