Skip to content

Commit e81645a

Browse files
committed
Remove Hashable constraints
1 parent e7fa67b commit e81645a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data/HashMap/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
18771877
difference 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
18891889
differenceWith f a b = foldlLeaves' go empty a
18901890
where
18911891
go m h (L k v) l = case lookup' h k b of

0 commit comments

Comments
 (0)