yael-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Yael.Eff.State

Documentation

data State s m Source #

Constructors

State 

Fields

get :: s :+ '[State s] Source #

put :: s -> () :+ '[State s] Source #

withState :: s -> (forall n. Monad n => State s n -> n a) -> (a, s) Source #

shareState :: Monad m => Lens' s s' -> State s m -> State s' m Source #