Documentation
data State s :: Effect where Source #
The State
s
effect provides access to a single cell of mutable state of
type s
.
modify :: State s :< effs => (s -> s) -> Eff effs () Source #
Modifies the current state by applying the given function to it.