universum-0.4.3: Custom prelude used in Serokell

Safe HaskellSafe
LanguageHaskell2010

Lifted.IORef

Description

Lifted reexports from IORef module.

Synopsis

Documentation

data IORef a :: * -> * #

A mutable variable in the IO monad

Instances

Eq (IORef a) 

Methods

(==) :: IORef a -> IORef a -> Bool #

(/=) :: IORef a -> IORef a -> Bool #

NFData (IORef a)

NOTE: Only strict in the reference and not the referenced value.

Since: 1.4.2.0

Methods

rnf :: IORef a -> () #

atomicModifyIORef :: MonadIO m => IORef a -> (a -> (a, b)) -> m b Source #

Lifted version of atomicModifyIORef.

atomicModifyIORef' :: MonadIO m => IORef a -> (a -> (a, b)) -> m b Source #

Lifted version of atomicModifyIORef'.

atomicWriteIORef :: MonadIO m => IORef a -> a -> m () Source #

Lifted version of atomicWriteIORef.

modifyIORef :: MonadIO m => IORef a -> (a -> a) -> m () Source #

Lifted version of modifyIORef.

modifyIORef' :: MonadIO m => IORef a -> (a -> a) -> m () Source #

Lifted version of modifyIORef'.

newIORef :: MonadIO m => a -> m (IORef a) Source #

Lifted version of newIORef.

readIORef :: MonadIO m => IORef a -> m a Source #

Lifted version of readIORef.

writeIORef :: MonadIO m => IORef a -> a -> m () Source #

Lifted version of writeIORef.