classy-effects-0.1.0.0: An interface for a handler-independent, typeclass-based effect system.
Copyright(c) 2016 Allele Dev; 2017 Ixperta Solutions s.r.o.; 2017 Alexis King
(c) 2023 Yamada Ryo
LicenseMPL-2.0 (see the file LICENSE)
Maintainerymdfield@outlook.jp
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageGHC2021

Control.Effect.Class.Coroutine

Description

This module provides the Coroutine effect, comes from Control.Monad.Freer.Coroutine in the freer-simple package.

Documentation

class Coroutine a b f where Source #

Methods

yield :: a -> (b -> c) -> f c Source #

Instances

Instances details
SendIns (CoroutineI a b) f => Coroutine a b (EffectsVia EffectDataHandler f) Source # 
Instance details

Defined in Control.Effect.Class.Coroutine

Methods

yield :: a -> (b -> c) -> EffectsVia EffectDataHandler f c Source #

data CoroutineI (a :: Type) (b :: Type) (a :: Type) where Source #

Constructors

Yield :: forall a b c. a -> (b -> c) -> CoroutineI a b c 

pattern YieldS :: () => a_6989586621679057204 ~ c => a -> (b -> c) -> LiftIns (CoroutineI a b) f a_6989586621679057204 Source #