Copyright | (c) 2023 Sayo Koyoneda |
---|---|
License | MPL-2.0 (see the file LICENSE) |
Maintainer | ymdfield@outlook.jp |
Safe Haskell | None |
Language | GHC2021 |
Data.Effect.Output
Description
This module provides the Output
effect, comes
from Polysemy.Output
in the polysemy
package.
Realizes output of values to the external world.
Synopsis
- data Output o a where
- type LOutput o = LiftFOE (Output o)
- pattern LOutput :: forall a o f. () => (a ~ (), ()) => o -> LiftFOE (Output o) f a
- output :: SendFOE (Output o) f => o -> f ()
- output' :: forall {k} (tag :: k) o f. SendFOE (Tag (Output o) tag) f => o -> f ()
- output'' :: forall {k} (key :: k) o f. SendFOEBy key (Output o) f => o -> f ()