Instances1DispatchOf
type DispatchOf (Reader r) = 'DynamicDefined in effectful-core-2.7.1.2 · Effectful.Internal.Effect.Dynamic
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Moduleeffectful-core-2.7.1.2GHC2021
The dynamically dispatched variant of the Reader effect.
Note: unless you plan to change interpretations at runtime or you need the
Control.Monad.Reader.MonadReader instance for compatibility with existing
code, it's recommended to use the statically dispatched variant,
i.e. Effectful.Reader.Static.
type DispatchOf (Reader r) = 'DynamicDefined in effectful-core-2.7.1.2 · Effectful.Internal.Effect.DynamicRun the Reader effect with the given initial environment.
withReader :: HasCallStack=> (r1 -> r2)The function to modify the environment.
-> Eff (Reader r2 ': es) aComputation to run in the modified environment.
-> Eff (Reader r1 ': es) aDeprecated. withReader doesn't work correctly for all potential interpreters
Execute a computation in a modified environment.
Fetch the value of the environment.
asks :: (HasCallStack, Reader r :> es)=> (r -> a)The function to apply to the environment.
-> Eff es a