extra-0.3.2: Extra functions I use.

Safe HaskellSafe-Inferred

Data.IORef.Extra

Synopsis

Documentation

modifyIORef' :: IORef a -> (a -> a) -> IO ()

writeIORef' :: IORef a -> a -> IO ()Source

Evaluates the value before calling writeIORef

atomicModifyIORef' :: IORef a -> (a -> (a, b)) -> IO b

atomicWriteIORef :: IORef a -> a -> IO ()

atomicWriteIORef' :: IORef a -> a -> IO ()Source

Evaluates the value before calling atomicWriteIORef