Provide the ability to perform primitive state-transformer actions.
Instances2DispatchOf, StaticRep
type DispatchOf Prim = 'Static 'WithSideEffectsDefined in effectful-core-2.7.1.2 · Effectful.Internal.Monaddata StaticRep PrimPrim
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11
Moduleeffectful-2.7.1.0GHC2021
Lifted Data.IORef.
Note: it requires Prim because MutVar from the primitive library is a
generalization of IORef.
Provide the ability to perform primitive state-transformer actions.
type DispatchOf Prim = 'Static 'WithSideEffectsDefined in effectful-core-2.7.1.2 · Effectful.Internal.Monaddata StaticRep PrimPrimRun an Eff computation with primitive state-transformer actions.
Lifted newIORef.
Lifted readIORef.
Lifted writeIORef.
Lifted modifyIORef.
Lifted modifyIORef'.
Lifted atomicModifyIORef.
Lifted atomicModifyIORef'.
Lifted atomicWriteIORef.
Lifted mkWeakIORef.
Note: the finalizer will run a cloned environment, so any changes it makes to thread local data will not be visible outside of it.