Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapState :: ((a, s) -> (b, s)) -> State s a -> State s b

    transformers Control.Monad.Trans.State.Lazy

    Map both the return value and final state of a computation using the given function.

  2. mapStateT :: (m (a, s) -> n (b, s)) -> StateT s m a -> StateT s n b

    transformers Control.Monad.Trans.State.Lazy

    Map both the return value and final state of a computation using the given function.

  3. runState :: State s a -> s -> (a, s)

    transformers Control.Monad.Trans.State.Lazy

    Unwrap a state monad computation as a function. (The inverse of state.)

  4. runStateT :: StateT s (m :: Type -> Type) a -> s -> m (a, s)

    transformers Control.Monad.Trans.State.Lazy

    No documentation available.

  5. withState :: (s -> s) -> State s a -> State s a

    transformers Control.Monad.Trans.State.Lazy

    withState f m executes action m on a state modified by applying f.

  6. withStateT :: forall s (m :: Type -> Type) a . (s -> s) -> StateT s m a -> StateT s m a

    transformers Control.Monad.Trans.State.Lazy

    withStateT f m executes action m on a state modified by applying f.

  7. evalState :: State s a -> s -> a

    transformers Control.Monad.Trans.State.Strict

    Evaluate a state computation with the given initial state and return the final value, discarding the final state.

  8. evalStateT :: Monad m => StateT s m a -> s -> m a

    transformers Control.Monad.Trans.State.Strict

    Evaluate a state computation with the given initial state and return the final value, discarding the final state.

  9. execState :: State s a -> s -> s

    transformers Control.Monad.Trans.State.Strict

    Evaluate a state computation with the given initial state and return the final state, discarding the final value.

  10. execStateT :: Monad m => StateT s m a -> s -> m s

    transformers Control.Monad.Trans.State.Strict

    Evaluate a state computation with the given initial state and return the final state, discarding the final value.

Page 10 of many | Previous | Next