Copyright | (c) 2016 Allele Dev; 2017 Ixperta Solutions s.r.o. |
---|---|
License | BSD3 |
Maintainer | ixcom-core@ixperta.com |
Stability | broken |
Portability | GHC specific language extensions. |
Safe Haskell | None |
Language | Haskell2010 |
An effect to compose functions with the ability to yield.
Using http://okmij.org/ftp/Haskell/extensible/Eff1.hs as a starting point.
Documentation
A type representing a yielding of control.
Type variables have following meaning:
a
- The current type.
b
- The input to the continuation function.
c
- The output of the continuation.
Yield a (b -> c) |
yield :: Member (Yield a b) effs => a -> (b -> c) -> Eff effs c Source #
Lifts a value and a function into the Coroutine effect.
Represents status of a coroutine.