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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleeffectful-core-2.7.1.2GHC2021

Effectful.Reader.Static

Support for access to a read only value of a particular type.

Note: strictly speaking the value is not read only because of local. If you want to ensure that the initial value never changes, use Effectful.Input.Static.

  • 1 type
  • 5 values

Effect

1 declaration
datadata Reader r (a :: Type -> Type) b
#

Provide access to a strict (WHNF), thread local, read only value of type r.

Instances2DispatchOf, StaticRep

Handlers

valuewithReader
  1. :: HasCallStack
  2. => (r1 -> r2)

    The function to modify the environment.

  3. -> Eff (Reader r2 ': es) a

    Computation to run in the modified environment.

  4. -> Eff (Reader r1 ': es) a
#

Execute a computation in a modified environment.

Operations