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
- runOutputList :: forall o a (es :: [Effect]). FOEs es => Eff (Output o ': es) a -> Eff es ([o], a)
- runOutputMonoid :: forall o w a (es :: [Effect]). (Monoid w, FOEs es) => (o -> w) -> Eff (Output o ': es) a -> Eff es (w, a)
- module Data.Effect.Output
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.
module Data.Effect.Output