heftia-effects-0.1.0.0: Handlers for standard effects using Heftia.
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

Description

Elaborator for the Provider effect class.

Synopsis

Documentation

elaborateProvider :: (c h, e h) => (f ~> h) -> (forall x. i -> h x -> f (g x)) -> Elaborator (ProviderS c e i g) f Source #

Elaborate the Provider effect using the given interpreter.

elaborateProviderT :: (Monad m, MonadTrans t, c (t m), e (t m)) => (forall x. i -> t m x -> m (g x)) -> Elaborator (ProviderS c e i g) m Source #

Elaborate the Provider effect using the given interpreter for some monad transformer.