Library with some useful extensions to the IO monad.
Exported Datatypes: IORef
Exported Functions: modifyIORef, newIORef, readIORef, writeIORef
data IORef a
Mutable variables containing values of some type. The values are not evaluated when they are assigned to an IORef.
Creates a new IORef with an initial value.
Reads the current value of an IORef.
writeIORef
:: IORef a -> a -> IO ()
Updates the value of an IORef.
modifyIORef
:: IORef a -> (a -> a) -> IO ()
Modify the value of an IORef.