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.State.Dynamic

The dynamically dispatched variant of the State effect.

Note: unless you plan to change interpretations at runtime or you need the Control.Monad.State.MonadState instance for compatibility with existing code, it's recommended to use one of the statically dispatched variants, i.e. Effectful.State.Static.Local or Effectful.State.Static.Shared.

  • 1 type
  • 13 values

Effect

1 declaration

Handlers

Local

Shared

Operations

valuestateM :: (HasCallStack, State s :> es) => (s -> Eff es (a, s)) -> Eff es a
#

Deprecated. Use a combination of get and put instead.

Apply the monadic function to the current state and return a value.