Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
module Data.IORef
class Access io => IORefAccess io where Source
newIORef' :: a -> io (IORef a) Source
readIORef' :: IORef a -> io a Source
writeIORef' :: IORef a -> a -> io () Source
modifyIORef_ :: IORef a -> (a -> a) -> io () Source
modifyIORef_' :: IORef a -> (a -> a) -> io () Source
atomicModifyIORef_ :: IORef a -> (a -> (a, b)) -> io b Source
atomicModifyIORef_' :: IORef a -> (a -> (a, b)) -> io b Source
atomicWriteIORef' :: IORef a -> a -> io () Source
class (WeakMemAccess io, IORefAccess io) => WeakIORefAccess io where Source