io-classes-1.1.0.0: Type classes for concurrency with STM, ST and timing
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Concurrent.Class.MonadSTM.TQueue

Description

This module corresponds to TVar in "stm" package

Synopsis

MonadSTM

type family TQueue m :: Type -> Type Source #

Instances

Instances details
type TQueue IO Source # 
Instance details

Defined in Control.Monad.Class.MonadSTM.Internal

type TQueue (ReaderT r m) Source # 
Instance details

Defined in Control.Monad.Class.MonadSTM.Internal

type TQueue (ReaderT r m) = TQueue m

readTQueue :: MonadSTM m => TQueue m a -> STM m a Source #

peekTQueue :: MonadSTM m => TQueue m a -> STM m a Source #

flushTQueue :: MonadSTM m => TQueue m a -> STM m [a] Source #

writeTQueue :: MonadSTM m => TQueue m a -> a -> STM m () Source #

unGetTQueue :: MonadSTM m => TQueue m a -> a -> STM m () Source #

MonadLabelledSTM

MonadTraceSTM

traceTQueue :: MonadTraceSTM m => proxy m -> TQueue m a -> (Maybe [a] -> [a] -> InspectMonad m TraceValue) -> STM m () Source #

traceTQueueIO :: MonadTraceSTM m => TQueue m a -> (Maybe [a] -> [a] -> InspectMonad m TraceValue) -> m () Source #