Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
For full documentation please refer to Data.IORef.
Synopsis
- data IORef' a
- newIORef' :: a -> IO (IORef' a)
- readIORef' :: IORef' a -> IO a
- writeIORef' :: IORef' a -> a -> IO ()
- modifyIORef' :: IORef' a -> (a -> a) -> IO ()
- atomicModifyIORef' :: IORef' a -> (a -> (a, b)) -> IO b
- atomicWriteIORef' :: IORef' a -> a -> IO ()
- mkWeakIORef' :: IORef' a -> IO () -> IO (Weak (IORef' a))
Documentation
A strict (WHNF) variant of IORef
.
Operations
writeIORef' :: IORef' a -> a -> IO () Source #
writeIORef
for IORef'
.
Evaluates the new value to WHNF.
modifyIORef' :: IORef' a -> (a -> a) -> IO () Source #
modifyIORef
for IORef'
.
atomicModifyIORef' :: IORef' a -> (a -> (a, b)) -> IO b Source #
atomicModifyIORef
for IORef'
.
Evaluates the new value to WHNF.
atomicWriteIORef' :: IORef' a -> a -> IO () Source #
atomicWriteIORef
for IORef'
.
Evaluates the new value to WHNF.
mkWeakIORef' :: IORef' a -> IO () -> IO (Weak (IORef' a)) Source #
mkWeakIORef
for IORef'
.