Copyright | (c) 2024 Sayo contributors |
---|---|
License | MPL-2.0 (see the LICENSE file) |
Maintainer | ymdfield@outlook.jp |
Safe Haskell | None |
Language | GHC2021 |
Control.Monad.Hefty.Output
Description
Interpreters for the Output
effect.
Synopsis
Documentation
runOutputList :: forall o a (es :: [(Type -> Type) -> Type -> Type]). 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 :: [(Type -> Type) -> Type -> Type]). (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.
module Data.Effect.Output