lifted-stm-0.2.0.1: STM operations lifted through monad transformer stacks
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Concurrent.STM.TVar.Lifted

Description

Lifted TVar operations.

Synopsis

Documentation

data TVar a #

Shared memory locations that support atomic memory transactions.

Instances

Instances details
Eq (TVar a)

Since: base-4.8.0.0

Instance details

Defined in GHC.Conc.Sync

Methods

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

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

newTVar :: MonadBase STM μ => α -> μ (TVar α) Source #

A lifted version of newTVar.

newTVarIO :: MonadBase IO μ => α -> μ (TVar α) Source #

A lifted version of newTVarIO.

readTVar :: MonadBase STM μ => TVar α -> μ α Source #

A lifted version of readTVar.

readTVarIO :: MonadBase IO μ => TVar α -> μ α Source #

A lifted version of readTVarIO.

writeTVar :: MonadBase STM μ => TVar α -> α -> μ () Source #

A lifted version of writeTVar.

modifyTVar :: MonadBase STM μ => TVar α -> (α -> α) -> μ () Source #

A lifted version of modifyTVar.

modifyTVar' :: MonadBase STM μ => TVar α -> (α -> α) -> μ () Source #

A lifted version of modifyTVar'.

swapTVar :: MonadBase STM μ => TVar α -> α -> μ α Source #

A lifted version of swapTVar.

registerDelay :: MonadBase IO μ => Int -> μ (TVar Bool) Source #

A lifted version of registerDelay.

mkWeakTVar :: MonadBase IO μ => TVar α -> IO () -> μ (Weak (TVar α)) Source #

A lifted version of mkWeakTVar.