We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56c5a7c commit 2b0674eCopy full SHA for 2b0674e
Data/HashMap/Internal/Strict.hs
@@ -620,7 +620,7 @@ traverseWithKey f = go
620
-- encountered, the combining function is applied to the values of these keys.
621
-- If it returns 'Nothing', the element is discarded (proper set difference). If
622
-- it returns (@'Just' y@), the element is updated with a new value @y@.
623
-differenceWith :: Hashable k => (v -> w -> Maybe v) -> HashMap k v -> HashMap k w -> HashMap k v
+differenceWith :: Eq k => (v -> w -> Maybe v) -> HashMap k v -> HashMap k w -> HashMap k v
624
differenceWith f = HM.differenceWithKey $
625
\_k vA vB -> case f vA vB of
626
Nothing -> Nothing
0 commit comments