Hoogle Search
Within LTS Haskell 24.9 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
dangerousMVarRunStateT :: MVar s -> Unlift MonadIO (StateT s)monadology Control.Monad.Ology.Specific.StateT Dangerous, because the MVar won't be released on exception.
discardingStateTUnlift :: s -> Unlift MonadIO (StateT s)monadology Control.Monad.Ology.Specific.StateT No documentation available.
evalState :: State s a -> s -> amonadology Control.Monad.Ology.Specific.StateT Evaluate a state computation with the given initial state and return the final value, discarding the final state.
evalStateT :: Monad m => StateT s m a -> s -> m amonadology Control.Monad.Ology.Specific.StateT Evaluate a state computation with the given initial state and return the final value, discarding the final state.
evalStateT m s = liftM fst (runStateT m s)
execState :: State s a -> s -> smonadology Control.Monad.Ology.Specific.StateT Evaluate a state computation with the given initial state and return the final state, discarding the final value.
execStateT :: Monad m => StateT s m a -> s -> m smonadology Control.Monad.Ology.Specific.StateT Evaluate a state computation with the given initial state and return the final state, discarding the final value.
execStateT m s = liftM snd (runStateT m s)
-
monadology Control.Monad.Ology.Specific.StateT No documentation available.
liftWithMVarStateT :: MonadIO m => (MVar s -> m a) -> StateT s m amonadology Control.Monad.Ology.Specific.StateT No documentation available.
mVarRunStateT :: MVar s -> Unlift MonadTunnelIO (StateT s)monadology Control.Monad.Ology.Specific.StateT Run the StateT on an MVar, taking the initial state and putting the final state.
mapState :: ((a, s) -> (b, s)) -> State s a -> State s bmonadology Control.Monad.Ology.Specific.StateT Map both the return value and final state of a computation using the given function.