Copyright | (c) 2024 Sayo Koyoneda |
---|---|
License | MPL-2.0 (see the LICENSE file) |
Maintainer | [email protected] |
Safe Haskell | None |
Language | GHC2021 |
Control.Monad.Hefty.Coroutine
Description
Interpreters for the coroutine effect.
Synopsis
- runCoroutine :: forall a b ans (ef :: [Type -> Type]). Eff ('[] :: [EffectH]) (Yield a b ': ef) ans -> Eff ('[] :: [EffectH]) ef (Status (Eff ('[] :: [EffectH]) ef) a b ans)
- inputToYield :: Input i x -> Yield () i x
- outputToYield :: Output o x -> Yield o () x
- module Data.Effect.Coroutine
- module Data.Effect.Input
- module Data.Effect.Output
Documentation
runCoroutine :: forall a b ans (ef :: [Type -> Type]). Eff ('[] :: [EffectH]) (Yield a b ': ef) ans -> Eff ('[] :: [EffectH]) ef (Status (Eff ('[] :: [EffectH]) ef) a b ans) Source #
inputToYield :: Input i x -> Yield () i x Source #
outputToYield :: Output o x -> Yield o () x Source #
module Data.Effect.Coroutine
module Data.Effect.Input
module Data.Effect.Output