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

Control.Monad.Hefty.Output

Description

Interpreters for the Output effect.

Synopsis

Documentation

runOutputList :: forall o a (es :: [Effect]). FOEs es => Eff (Output o ': es) a -> Eff es ([o], a) Source #

Interprets the Output effect by accumulating the outputs into a list.

runOutputMonoid :: forall o w a (es :: [Effect]). (Monoid w, FOEs es) => (o -> w) -> Eff (Output o ': es) a -> Eff es (w, a) Source #

Interprets the Output effect by accumulating the outputs into a monoid.