| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Control.Eff.Coroutine
Description
Coroutines implemented with extensible effects
Documentation
Co-routines The interface is intentionally chosen to be the same as in transf.hs
| The yield request: reporting a value of type e and suspending the coroutine. Resuming with the value of type b
Status of a thread: done or reporting the value of the type a (For simplicity, a co-routine reports a value but accepts unit)
Type parameter r is the effect we're yielding from.
Type parameter a is the type that is yielded.
Type parameter w is the type of the value returned from the
coroutine when it has completed.