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

Control.Monad.Hefty.Output

Description

Interpreters for the Output effect.

Synopsis

Documentation

runOutputList :: forall o a es. 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. (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.