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.CC

Description

 

Documentation

runCC :: forall (es :: [Effect]) a ans. FOEs es => (a -> Eff es ans) -> Eff (CC (Op (Eff es ans)) ': es) a -> Eff es ans Source #

handleCC :: forall g ans (f :: Type -> Type) x. CC (Op (g ans)) f x -> (x -> g ans) -> g ans Source #

evalCC :: forall (es :: [Effect]) a. FOEs es => Eff (CC (Op (Eff es a)) ': es) a -> Eff es a Source #