| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Effectful.Reader.Dynamic
Contents
Description
The dynamically dispatched variant of the Reader effect.
Note: unless you plan to change interpretations at runtime, it's recommended to use the statically dispatched variant, i.e. Effectful.Reader.Static.
Effect
data Reader r :: Effect where Source #
Instances
| type DispatchOf (Reader r) Source # | |
Defined in Effectful.Reader.Dynamic | |
Handlers
Run the Reader effect with the given initial environment (via
Effectful.Reader.Static).
Operations
Arguments
| :: (HasCallStack, Reader r :> es) | |
| => (r -> a) | The function to apply to the environment. |
| -> Eff es a |