Hoogle Search
Within LTS Haskell 24.15 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
runState :: s -> StateC s m a -> m (s, a)fused-effects Control.Carrier.State.Strict Run a State effect starting from the passed value.
runState s (pure a) = pure (s, a)
runState s get = pure (s, s)
runState s (put t) = pure (t, ())
runState :: State s a -> s -> (a, s)monads-tf Control.Monad.State.Lazy Unwrap a state monad computation as a function. (The inverse of state.)
runState :: State s a -> s -> (a, s)monads-tf Control.Monad.State.Strict Unwrap a state monad computation as a function. (The inverse of state.)
runState :: (C q, C q, C u, C v) => Sequence s u v T q -> T s u q (R s v q q)synthesizer-dimensional Synthesizer.Dimensional.RateAmplitude.Piece No documentation available.
-
bluefin-internal Bluefin.Internal >>> runPureEff $ runState 10 $ \st -> do n <- get st pure (2 * n) (20,10)
runState :: State s a -> s -> (a, s)dunai Control.Monad.Trans.MSF.State Unwrap a state monad computation as a function. (The inverse of state.)
runState :: forall s (es :: [Effect]) a . FOEs es => s -> Eff (State s ': es) a -> Eff es (s, a)heftia-effects Control.Monad.Hefty.State Interpret the State effect.
runState :: State s a -> s -> (a, s)monadology Control.Monad.Ology.Specific.StateT Unwrap a state monad computation as a function. (The inverse of state.)
runState :: State s a -> s -> (a, s)mtl-prelude MTLPrelude Unwrap a state monad computation as a function. (The inverse of state.)
runState :: State s a -> s -> (a, s)rev-state Control.Monad.RevState No documentation available.