File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1873,7 +1873,7 @@ foldlLeaves' f = go
18731873
18741874-- | \(O(n \log m)\) Difference of two maps. Return elements of the first map
18751875-- not existing in the second.
1876- difference :: ( Eq k , Hashable k ) => HashMap k v -> HashMap k w -> HashMap k v
1876+ difference :: Eq k => HashMap k v -> HashMap k w -> HashMap k v
18771877difference a b = foldlLeaves' go empty a
18781878 where
18791879 go m h (L k _) l = case lookup' h k b of
@@ -1885,7 +1885,7 @@ difference a b = foldlLeaves' go empty a
18851885-- encountered, the combining function is applied to the values of these keys.
18861886-- If it returns 'Nothing', the element is discarded (proper set difference). If
18871887-- it returns (@'Just' y@), the element is updated with a new value @y@.
1888- differenceWith :: ( Eq k , Hashable k ) => (v -> w -> Maybe v ) -> HashMap k v -> HashMap k w -> HashMap k v
1888+ differenceWith :: Eq k => (v -> w -> Maybe v ) -> HashMap k v -> HashMap k w -> HashMap k v
18891889differenceWith f a b = foldlLeaves' go empty a
18901890 where
18911891 go m h (L k v) l = case lookup' h k b of
You can’t perform that action at this time.
0 commit comments