|
| Control.Monad.MonadStateIO |
|
|
| Description |
general usefull state monad for a local state and IO
Version : $Id: MonadStateIO.hs,v 1.1 20040902 19:11:55 hxml Exp $
|
|
| Synopsis |
|
|
|
| Documentation |
|
| newtype StateIO state res | Source |
|
| Constructors | | STIO | | | trans :: state -> IO (res, state) | |
|
| Instances | |
|
|
|
| lift IO command to StateIO
|
|
|
| state inspection command: a "show"-like function is applied to the state
and the result is written to stderr.
|
|
|
| change the state with a given function and return the new state
|
|
|
| set the state
|
|
|
| read the state
|
|
|
| run a StateIO command with an initial state
|
|
| Produced by Haddock version 2.3.0 |