| Copyright | Allele Dev 2016 |
|---|---|
| License | BSD-3 |
| Maintainer | allele.dev@gmail.com |
| Stability | broken |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Control.Monad.Freer.Coroutine
Description
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 a: The current type b: The input to the continuation function v: The output of the continuation
yield :: Member (Yield a b) r => a -> (b -> c) -> Eff r c Source #
Lifts a value and a function into the Coroutine effect
Status of a thread: done or reporting the value of the type a and resuming with the value of type b