data-effects-0.3.0.1: A basic framework for effect systems based on effects represented by GADTs.
Copyright(c) 2023 Sayo Koyoneda
LicenseMPL-2.0 (see the file LICENSE)
Maintainerymdfield@outlook.jp
Safe HaskellNone
LanguageGHC2021

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

Documentation

data Output o a where Source #

A general effect representing output of values to the external world.

Constructors

Output :: forall o. o -> Output o ()

Output a value to the external world.

pattern LOutput :: forall a o f. () => (a ~ (), ()) => o -> LiftFOE (Output o) f a Source #

output :: SendFOE (Output o) f => o -> f () Source #

Output a value to the external world.

output' :: forall {k} (tag :: k) o f. SendFOE (Tag (Output o) tag) f => o -> f () Source #

Output a value to the external world.

output'' :: forall {k} (key :: k) o f. SendFOEBy key (Output o) f => o -> f () Source #

Output a value to the external world.