heftia-effects-0.7.0.0: higher-order algebraic effects done right
Copyright(c) 2024-2025 Sayo contributors
LicenseMPL-2.0 (see the LICENSE file)
Maintainerymdfield@outlook.jp
Safe HaskellNone
LanguageGHC2021

Control.Monad.Hefty.Coroutine

Description

Interpreters for the coroutine effect.

Synopsis

Documentation

runCoroutine :: forall ans a b (es :: [Effect]). FOEs es => Eff (Yield a b ': es) ans -> Eff es (Status (Eff es) a b ans) Source #

Interpret the coroutine's Yield effect.