@@ -1,10 +1,11 @@
1+{-# LANGUAGE DeriveDataTypeable #-}
2+{-# LANGUAGE MagicHash, UnboxedTuples #-}
1-- | Clone of Control.Concurrent.STM.TQueue with support for mkWeakTQueue
3-- | Clone of Control.Concurrent.STM.TQueue with support for mkWeakTQueue
3-- Not all functionality from the original module is available: unGetTQueue,
5-- Not all functionality from the original module is available: unGetTQueue,
4-- peekTQueue and tryPeekTQueue are missing. In order to implement these we'd
6-- peekTQueue and tryPeekTQueue are missing. In order to implement these we'd
5-- need to be able to touch# the write end of the queue inside unGetTQueue, but
7-- need to be able to touch# the write end of the queue inside unGetTQueue, but
6-- that means we need a version of touch# that works within the STM monad.
8-- that means we need a version of touch# that works within the STM monad.
7−{-# LANGUAGE MagicHash, UnboxedTuples #-}
8module Control.Distributed.Process.Internal.WeakTQueue (
9module Control.Distributed.Process.Internal.WeakTQueue (
9 -- * Original functionality
10 -- * Original functionality