Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
This module provides the familiar state effect.
data State s a
stateHandler :: Handler (State s) r a (s -> Eff r a)
Handle state into a function. Note that applying the resulting function you get out another program that you have to bind over.