Copyright | Alej Cabrera 2015 |
---|---|
License | BSD-3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Control.Monad.Freer.State
Description
Composable handler for State effects.
Using http://okmij.org/ftp/Haskell/extensible/Eff1.hs as a starting point.
Documentation
data ProxyState s Source
Constructors
ProxyState |
transactionState :: forall s r w. Member (State s) r => ProxyState s -> Eff r w -> Eff r w Source
An encapsulated State handler, for transactional semantics The global state is updated only if the transactionState finished successfully