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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulefused-effects-1.1.2.7Haskell2010

Control.Carrier.State.Strict

A carrier for the State effect. It evaluates its inner state strictly, which is the correct choice for the majority of use cases.

Note that the parameter order in runState, evalState, and execState is reversed compared the equivalent functions provided by transformers. This is an intentional decision made to enable the composition of effect handlers with . without invoking flip.

  • 1 type
  • 3 values

Strict state carrier

4 declarations
newtypenewtype StateC s (m :: Type -> Type) a
#

Constructors

Instances10MonadTrans, Monad, Functor, MonadFix, MonadFail, Applicative, …

State effect

0 declarations