Safe Haskell | None |
---|
Coroutines implemented with extensible effects
Documentation
The yield request: reporting a value of type e and suspending the coroutine. For readability, a coroutine accepts a unit to produce its value.
yield :: (Typeable a, Member (Yield a) r) => a -> Eff r ()Source
Yield a value of type a and suspend the coroutine.