HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleeffectful-core-2.7.1.2GHC2021

Effectful.Provider.List

Turn a handler of multiple effects into an effectful operation.

Generalizes Effectful.Provider.

  • 2 types
  • 1 class
  • 6 values

Effect

2 declarations
datadata ProviderList (providedEs :: [Effect]) input (f :: Type -> Type) (a :: Type -> Type) b where
#

Provide a way to run a handler of multiple providedEs with a given input.

Note: f can be used to alter the return type of the handler. If that's unnecessary, use ProviderList_.

Constructors

Instances1DispatchOf

Handlers

Operations

Misc

2 declarations
familytype family (++) (xs :: [Effect]) (ys :: [Effect]) :: [Effect] where
#

Append two type-level lists together.

Equations

  • (++) '[] ys = ys
  • (++) (x ': xs) ys = x ': xs ++ ys
classclass Subset subEs es => KnownSubset (subEs :: [Effect]) (es :: [Effect])
#

Provide evidence that subEs is a known subset of es.

Instances2KnownSubset
  • KnownSubset '[] esDefined in effectful-core-2.7.1.2 · Effectful.Internal.Effect
  • (e :> es, KnownSubset subEs es) => KnownSubset (e ': subEs) esDefined in effectful-core-2.7.1.2 · Effectful.Internal.Effect