Provide access to values of type i.
Instances1DispatchOf
type DispatchOf (Input i) = 'DynamicDefined in effectful-core-2.7.1.2 · Effectful.Input.Dynamic
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11
Moduleeffectful-core-2.7.1.2GHC2021
Provide access to values of type i.
type DispatchOf (Input i) = 'DynamicDefined in effectful-core-2.7.1.2 · Effectful.Input.DynamicrunInput :: HasCallStack=> iThe input value.
-> Eff (Labeled label (Input i) ': es) a-> Eff es aRun the Input effect with the given value.
runInputAction :: HasCallStack=> (HasCallStack => Eff es i)The action for input generation.
-> Eff (Labeled label (Input i) ': es) a-> Eff es aRun the Input effect with the given action that supplies values.
Fetch the value.
Assign a label to an effect.
Note: labeled effects are best used together with the effectful-plugin package, as it significantly improves their usability.
The constructor is for sending labeled operations of a dynamically dispatched effect to the handler:
import Effectful.Dispatch.Dynamic:{ data X :: Effect where X :: X m Int type instance DispatchOf X = Dynamic:}
:{ runPureEff . runLabeled @"x" (interpret_ $ \X -> pure 333) $ do send $ Labeled @"x" X:}333
type DispatchOf (Labeled label e) = DispatchOf eDefined in effectful-core-2.7.1.2 · Effectful.Labeleddata StaticRep (Labeled label e)Defined in effectful-core-2.7.1.2 · Effectful.Labeled