Hoogle Search
Within LTS Haskell 22.33 (ghc-9.6.6)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
module Control.Monad.Trans.
State State monads, passing an updatable state through a computation. Some computations may not require the full power of state transformers:
- For a read-only state, see Control.Monad.Trans.Reader.
- To accumulate a value without using it on the way, see Control.Monad.Trans.Writer.
type
State s = StateT s Identitytransformers Control.Monad.Trans.State.Lazy A state monad parameterized by the type s of the state to carry. The return function leaves the state unchanged, while >>= uses the final state of the first computation as the initial state of the second.
type
State s = StateT s Identitytransformers Control.Monad.Trans.State.Strict A state monad parameterized by the type s of the state to carry. The return function leaves the state unchanged, while >>= uses the final state of the first computation as the initial state of the second.
-
State monads. This module is inspired by the paper Functional Programming with Overloading and Higher-Order Polymorphism, Mark P Jones (http://web.cecs.pdx.edu/~mpj/) Advanced School of Functional Programming, 1995.
type
State s = StateT s Identitymtl Control.Monad.State.Lazy A state monad parameterized by the type s of the state to carry. The return function leaves the state unchanged, while >>= uses the final state of the first computation as the initial state of the second.
type
State s = StateT s Identitymtl Control.Monad.State.Strict A state monad parameterized by the type s of the state to carry. The return function leaves the state unchanged, while >>= uses the final state of the first computation as the initial state of the second.
-
No documentation available.
module Control.Monad.Trans.
State No documentation available.
module Control.Monad.Representable.
State A generalized State monad, parameterized by a Representable functor. The representation of that functor serves as the state.
type
State g = StateT g Identityadjunctions Control.Monad.Representable.State A memoized state monad parameterized by a representable functor g, where the representatation of g, Rep g is the state to carry. The return function leaves the state unchanged, while >>= uses the final state of the first computation as the initial state of the second.
Page 1 of many | Next