data-effects-0.3.0.0: A basic framework for effect systems based on effects represented by GADTs.
Safe HaskellNone
LanguageGHC2021

Data.Effect.Select

Documentation

data Select r a where Source #

Constructors

Select :: forall a r. ((a -> r) -> a) -> Select r a 

pattern LSelect :: forall a r f a1. () => (a ~ a1, ()) => ((a1 -> r) -> a1) -> LiftFOE (Select r) f a Source #

select :: forall a r f. SendFOE (Select r) f => ((a -> r) -> a) -> f a Source #

select' :: forall {k} (tag :: k) a r f. SendFOE (Tag (Select r) tag) f => ((a -> r) -> a) -> f a Source #

select'' :: forall {k} (key :: k) a r f. SendFOEBy key (Select r) f => ((a -> r) -> a) -> f a Source #