eff-0.0.0.0
Safe HaskellNone
LanguageHaskell2010

Control.Effect.Coroutine

Documentation

data Coroutine a b :: Effect where Source #

Constructors

Yield :: a -> Coroutine a b m b 

yield :: Coroutine a b :< effs => a -> Eff effs b Source #

data Status effs a b c Source #

Constructors

Done c 
Yielded a !(b -> Eff (Coroutine a b ': effs) c) 

runCoroutine :: Eff (Coroutine a b ': effs) c -> Eff effs (Status effs a b c) Source #