A state monad which is strict in the state s, but lazy in the value a.
See Note [Strict State monad] for the particular notion of strictness and implementation details.
Constructors
State'runState' :: s -> (# a, s #)
Instances4MonadGetUnique, Monad, Functor, Applicative
MonadGetUnique SpillMDefined in ghc-9.14.1 · GHC.CmmToAsm.Reg.Graph.SpillMonad (State s)Defined in ghc-9.14.1 · GHC.Utils.Monad.State.StrictFunctor (State s)Defined in ghc-9.14.1 · GHC.Utils.Monad.State.StrictApplicative (State s)Defined in ghc-9.14.1 · GHC.Utils.Monad.State.Strict