classy-effects-th-0.1.0.0: Automatic compliance with the classy-effects protocols
Safe HaskellSafe-Inferred
LanguageGHC2021

Control.Effect.Class.Machinery.TH.Internal

Synopsis

Documentation

generateOrderUnifiedEffectClass :: EffectInfo -> EffectInfo -> [Name] -> Name -> Q [Dec] Source #

Generate the order-unified empty effect class:

class (FoobarF ... f, FoobarH ... f) => Foobar ... f

, and derive an instance of the effect that handles via SendIns/ SendSig instances.

generateOrderUnifiedEffDataTySyn :: Name -> Name -> [Name] -> Name -> Q Dec Source #

Generate the order-unified effect data type synonym:

type Foobar ... = FoobarS ... :+: LiftIns (FoobarI ...)