heftia-effects-0.2.0.0: higher-order effects done right
Copyright(c) 2023 Yamada Ryo
LicenseMPL-2.0 (see the file LICENSE)
Maintainerymdfield@outlook.jp
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageGHC2021

Control.Effect.Handler.Heftia.Provider.Implicit

Description

Elaborator for the ImplicitProvider effect class.

Synopsis

Documentation

elaborateImplicitProvider :: (c g, e g) => (f ~> g) -> (i -> forall x. g x -> f x) -> Elab (ImplicitProvider' c i e) f Source #

Elaborate the ImplicitProvider' effect using the given interpreter.

runImplicitProvider :: (e (Eff u fr eh (LAsk i ': ef)), c (Eff u fr eh (LAsk i ': ef)), Freer c fr, Union u, HFunctor (u eh), Applicative (Eff u fr eh ef)) => Elab (ImplicitProvider' c i e) (Eff u fr eh ef) Source #