summaryrefslogtreecommitdiff
path: root/Control/Concurrent/STM/StatusCache.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-02-12 00:42:08 -0500
committerjoe <joe@jerkface.net>2014-02-12 00:42:08 -0500
commit82f0f040bb204add2fe40f10dba259f2a524b824 (patch)
tree19457ab5b664735ef311f82bb999592583073735 /Control/Concurrent/STM/StatusCache.hs
parent7c520e503992d5f8c6a9259ef2c3220ef36d5f24 (diff)
updated UpdateStream for nesting
Diffstat (limited to 'Control/Concurrent/STM/StatusCache.hs')
-rw-r--r--Control/Concurrent/STM/StatusCache.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Control/Concurrent/STM/StatusCache.hs b/Control/Concurrent/STM/StatusCache.hs
index db77429f..3226978b 100644
--- a/Control/Concurrent/STM/StatusCache.hs
+++ b/Control/Concurrent/STM/StatusCache.hs
@@ -63,6 +63,7 @@ module Control.Concurrent.STM.StatusCache
63 , new 63 , new
64 , push 64 , push
65 , pull 65 , pull
66 , pullDepth
66 , isStopper 67 , isStopper
67 , isStarter 68 , isStarter
68 , isEmpty 69 , isEmpty
@@ -77,7 +78,7 @@ data StatusCache x =
77 , cache :: TVar (TChan x) 78 , cache :: TVar (TChan x)
78 , feedFlag :: TVar Bool 79 , feedFlag :: TVar Bool
79 , pushDepth :: TVar Int 80 , pushDepth :: TVar Int
80 , pullDepth :: TVar Int 81 , pullDepth :: TVar Int -- ^ current nesting depth of next-to-pull data
81 , isStarter :: x -> Bool -- ^ True if the given chunk begins a message. 82 , isStarter :: x -> Bool -- ^ True if the given chunk begins a message.
82 , isStopper :: x -> Bool -- ^ True if the given chunk ends a message. 83 , isStopper :: x -> Bool -- ^ True if the given chunk ends a message.
83 } 84 }