Copyright | Alej Cabrera 2015 |
---|---|
License | BSD-3 |
Maintainer | cpp.cabrera@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
Composable handler for State effects.
Using http://okmij.org/ftp/Haskell/extensible/Eff1.hs as a starting point.
Documentation
data ProxyState s Source
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