Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

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

    monads-tf Control.Monad.State.Strict

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

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

    monads-tf Control.Monad.State.Strict

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

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

    monads-tf Control.Monad.State.Strict

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

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

    monads-tf Control.Monad.State.Strict

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

  5. 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.)

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

    monads-tf Control.Monad.State.Strict

    No documentation available.

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

    monads-tf Control.Monad.State.Strict

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

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

    monads-tf Control.Monad.State.Strict

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

  9. class MonadState s m => MonadStateStack s (m :: Type -> Type)

    statestack Control.Monad.StateStack

    Class of monads which support a state along with a stack for saving and restoring states.

  10. evalStateStack :: StateStack s a -> s -> a

    statestack Control.Monad.StateStack

    Like runStateStack, but discard the final state.

Page 17 of many | Previous | Next