Control.Monad.Trans.State

transformers-0.5.5.0: Concrete functor and monad transformers

Copyright | (c) Andy Gill 2001 (c) Oregon Graduate Institute of Science and Technology 2001
License | BSD-style (see the file LICENSE)
Maintainer | R.Paterson@city.ac.uk
Stability | experimental
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Control.Monad.Trans.State

Description

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.

This version is lazy; for a strict version, see Control.Monad.Trans.State.Strict, which has the same interface.

# Documentation

module Control.Monad.Trans.State.Lazy