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.
runStateT :: StateT s m a -> s -> m (a, s)mtl Control.Monad.State.Strict No documentation available.
runStateGen :: RandomGen g => g -> (StateGenM g -> State g a) -> (a, g)random System.Random.Stateful Runs a monadic generating action in the State monad using a pure pseudo-random number generator.
Examples
>>> import System.Random.Stateful >>> let pureGen = mkStdGen 137 >>> runStateGen pureGen randomM :: (Int, StdGen) (7879794327570578227,StdGen {unStdGen = SMGen 11285859549637045894 7641485672361121627})
runStateGenST :: RandomGen g => g -> (forall s . () => StateGenM g -> StateT g (ST s) a) -> (a, g)random System.Random.Stateful Runs a monadic generating action in the ST monad using a pure pseudo-random number generator.
runStateGenST_ :: RandomGen g => g -> (forall s . () => StateGenM g -> StateT g (ST s) a) -> arandom System.Random.Stateful Runs a monadic generating action in the ST monad using a pure pseudo-random number generator. Same as runStateGenST, but discards the resulting generator.
runStateGenT :: RandomGen g => g -> (StateGenM g -> StateT g m a) -> m (a, g)random System.Random.Stateful Runs a monadic generating action in the StateT monad using a pure pseudo-random number generator.
Examples
>>> import System.Random.Stateful >>> let pureGen = mkStdGen 137 >>> runStateGenT pureGen randomM :: IO (Int, StdGen) (7879794327570578227,StdGen {unStdGen = SMGen 11285859549637045894 7641485672361121627})
runStateGenT_ :: (RandomGen g, Functor f) => g -> (StateGenM g -> StateT g f a) -> f arandom System.Random.Stateful Runs a monadic generating action in the StateT monad using a pure pseudo-random number generator. Returns only the resulting pseudo-random value.
Examples
>>> import System.Random.Stateful >>> let pureGen = mkStdGen 137 >>> runStateGenT_ pureGen randomM :: IO Int 7879794327570578227
runStateGen_ :: RandomGen g => g -> (StateGenM g -> State g a) -> arandom System.Random.Stateful Runs a monadic generating action in the State monad using a pure pseudo-random number generator. Returns only the resulting pseudo-random value.
Examples
>>> import System.Random.Stateful >>> let pureGen = mkStdGen 137 >>> runStateGen_ pureGen randomM :: Int 7879794327570578227
-
conduit Data.Conduit.Lift Run StateT in the base monad Since 1.0.11
-
conduit Data.Conduit.Lift Run StateT in the base monad Since 1.0.11
-
pipes Pipes.Lift Run StateT in the base monad