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
|
@ -1,3 +1,9 @@
|
|||
git-annex (8.20200720.2) UNRELEASED; urgency=medium
|
||||
|
||||
* Support building with dlist-1.0
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Tue, 21 Jul 2020 12:58:30 -0400
|
||||
|
||||
git-annex (8.20200720.1) upstream; urgency=medium
|
||||
|
||||
* Fix a bug in find --batch in the previous version.
|
||||
|
|
|
@ -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…
Reference in a new issue