packages feed

psqueues 0.1.0.1 → 0.1.1.0

raw patch · 4 files changed

+6/−3 lines, 4 files

Files

CHANGELOG view
@@ -1,3 +1,6 @@+- 0.1.1.0+    * Remove constraints from `size`+ - 0.1.0.1     * Extend cabal description, include CHANGELOG 
psqueues.cabal view
@@ -1,5 +1,5 @@ name: psqueues-version: 0.1.0.1+version: 0.1.1.0 license: BSD3 license-file: LICENSE maintainer: haskell@better.com
src/Data/HashPSQ/Internal.hs view
@@ -122,7 +122,7 @@  -- | /O(n)/ The number of elements stored in the PSQ. {-# INLINABLE size #-}-size :: (Hashable k, Ord p) => HashPSQ k p v -> Int+size :: HashPSQ k p v -> Int size (HashPSQ ipsq) = IntPSQ.fold'     (\_ _ (B _ _ opsq) acc -> 1 + OrdPSQ.size opsq + acc)     0
src/Data/OrdPSQ/Internal.hs view
@@ -145,7 +145,7 @@ null (Winner _ _ _) = False  -- | /O(1)/ The number of elements in a queue.-size :: (Ord p) => OrdPSQ k p v -> Int+size :: OrdPSQ k p v -> Int size Void            = 0 size (Winner _ lt _) = 1 + size' lt