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. mapState :: ((a, s) -> (b, s)) -> State s a -> State s b

    transformers Control.Monad.Trans.State.Strict

    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.Strict

    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.Strict

    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.Strict

    No documentation available.

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

    transformers Control.Monad.Trans.State.Strict

    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.Strict

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

  7. class Monad m => MonadState s (m :: Type -> Type) | m -> s

    mtl Control.Monad.State.Class

    Minimal definition is either both of get and put or just state

  8. class Monad m => MonadState s (m :: Type -> Type) | m -> s

    mtl Control.Monad.State.Lazy

    Minimal definition is either both of get and put or just state

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

    mtl Control.Monad.State.Lazy

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

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

    mtl Control.Monad.State.Lazy

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

Page 11 of many | Previous | Next