HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulefused-effects-1.1.2.7Haskell2010

Control.Carrier.State.IORef

A carrier for the State effect. It uses an IORef internally to handle its state, and thus admits a MonadUnliftIO instance. Because the state operations are performed impurely, this carrier will not lose state effects even with nefarious uses of liftWith.

Unlike the other carriers for State, this carrier's effects will not backtrack when run in conjuction with Control.Effect.NonDet effects.

Contents
  1. Impure state carrier
  2. State effect
Synopsis

Impure state carrier

newtypenewtype StateC s (m :: Type -> Type) a

Constructors

Instances11MonadTrans, Monad, Functor, MonadFix, MonadFail, Applicative, …

State effect