fix build with dlist-1.0
That removed the list function. This new implementation appears to actually be more efficient anyway, since it avoids toList.
This commit is contained in:
parent
77f7157ddb
commit
798fdad660
2 changed files with 7 additions and 1 deletions
|
@ -86,7 +86,7 @@ modifyTList tlist a = do
|
|||
putTMVar tlist dl'
|
||||
|
||||
emptyDList :: D.DList a -> Bool
|
||||
emptyDList = D.list True (\_ _ -> False)
|
||||
emptyDList = null . D.toList
|
||||
|
||||
consTList :: TList a -> a -> STM ()
|
||||
consTList tlist v = modifyTList tlist $ \dl -> D.cons v dl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue