data-effects-0.1.2.0: A basic framework for effect systems based on effects represented by GADTs.
Copyright(c) 2023 Yamada Ryo
LicenseMPL-2.0 (see the file LICENSE)
Maintainerymdfield@outlook.jp
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Effect.Input

Description

This module provides the Input effect, comes from Polysemy.Input in the polysemy package.

Documentation

data Input i (a :: Type) where Source #

Constructors

Input :: Input i i 

type LInput i = LiftIns (Input i) Source #

pattern LInput :: () => (a ~ i, ()) => LiftIns (Input i) f a Source #

input'' :: forall key (i :: Type) f. SendInsBy key (Input i) f => f i Source #

input' :: forall tag (i :: Type) f. SendIns (Tag (Input i) tag) f => f i Source #

input :: forall (i :: Type) f. SendIns (Input i) f => f i Source #

inputs :: (Input i <: f, Functor f) => (i -> a) -> f a Source #