Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module corresponds to TVar
in "stm" package
Synopsis
- type family TQueue m :: Type -> Type
- newTQueue :: MonadSTM m => STM m (TQueue m a)
- newTQueueIO :: MonadSTM m => m (TQueue m a)
- readTQueue :: MonadSTM m => TQueue m a -> STM m a
- tryReadTQueue :: MonadSTM m => TQueue m a -> STM m (Maybe a)
- peekTQueue :: MonadSTM m => TQueue m a -> STM m a
- tryPeekTQueue :: MonadSTM m => TQueue m a -> STM m (Maybe a)
- flushTQueue :: MonadSTM m => TQueue m a -> STM m [a]
- writeTQueue :: MonadSTM m => TQueue m a -> a -> STM m ()
- unGetTQueue :: MonadSTM m => TQueue m a -> a -> STM m ()
- isEmptyTQueue :: MonadSTM m => TQueue m a -> STM m Bool
- labelTQueue :: MonadLabelledSTM m => TQueue m a -> String -> STM m ()
- labelTQueueIO :: MonadLabelledSTM m => TQueue m a -> String -> m ()
- traceTQueue :: MonadTraceSTM m => proxy m -> TQueue m a -> (Maybe [a] -> [a] -> InspectMonad m TraceValue) -> STM m ()
- traceTQueueIO :: MonadTraceSTM m => TQueue m a -> (Maybe [a] -> [a] -> InspectMonad m TraceValue) -> m ()
MonadSTM
newTQueueIO :: MonadSTM m => m (TQueue m a) Source #
MonadLabelledSTM
labelTQueue :: MonadLabelledSTM m => TQueue m a -> String -> STM m () Source #
labelTQueueIO :: MonadLabelledSTM m => TQueue m a -> String -> m () Source #
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 #