refcount 0.1.1 → 0.1.2
raw patch · 2 files changed
+6/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Refcount: refcounts :: Refcount a -> [(a, Int)]
Files
- Data/Refcount.hs +5/−0
- refcount.cabal +1/−1
Data/Refcount.hs view
@@ -1,6 +1,7 @@ {-# LANGUAGE DeriveGeneric #-} module Data.Refcount ( Refcount (..) , refcount+ , refcounts , refcounted , insertRef , deleteRef@@ -31,6 +32,10 @@ -- | Retrieve the refcounted objects. refcounted :: Refcount a -> [a] refcounted = keys . unRefcount++-- | Retrieve objects and their counts.+refcounts :: Refcount a -> [(a, Int)]+refcounts = HashMap.toList . unRefcount -- | Create a counted structure from a list of elements. fromList :: (Hashable a, Eq a) => [a] -> Refcount a
refcount.cabal view
@@ -1,5 +1,5 @@ name: refcount-version: 0.1.1+version: 0.1.2 synopsis: Container with element counts category: Data license: MIT