|
|
|
|
|
Description |
A pure specification of mutable variables.
|
|
Synopsis |
|
|
|
|
The IORefS spec
|
|
|
An expression of type IOSpec IORefS a corresponds to an IO
computation that uses mutable references and returns a value of
type a.
| Instances | |
|
|
Manipulation and creation of IORefs
|
|
|
A mutable variable storing a value of type a. Note that the
types stored by an IORef are assumed to be Typeable.
|
|
|
|
The newIORef function creates a new mutable variable.
|
|
|
The readIORef function reads the value stored in a mutable variable.
|
|
|
The writeIORef function overwrites the value stored in a
mutable variable.
|
|
|
The modifyIORef function applies a function to the value stored in
and IORef.
|
|
Produced by Haddock version 2.4.2 |