base-io-access-0.4.0.0: The IO functions included in base delimited into small, composable classes

Safe HaskellSafe-Inferred
LanguageHaskell2010

Access.Data.IORef

Documentation

module Data.IORef

class Access io => IORefAccess io where Source

Methods

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

Instances

class (WeakMemAccess io, IORefAccess io) => WeakIORefAccess io where Source

Methods

mkWeakIORef' :: IORef a -> IO () -> io (Weak (IORef a)) Source

Instances