File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ unions = foldl union empty
615
615
616
616
-- | Difference of two maps. Return elements of the first map where
617
617
-- | the keys do not exist in the second map.
618
- difference :: forall k v . Ord k => Map k v -> Map k v -> Map k v
618
+ difference :: forall k v w . Ord k => Map k v -> Map k w -> Map k v
619
619
difference m1 m2 = foldl (flip delete) m1 (keys m2)
620
620
621
621
-- | Test whether one map contains all of the keys and values contained in another map
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ mapTests = do
217
217
218
218
log " difference"
219
219
quickCheck $ \(TestMap m1) (TestMap m2) ->
220
- let d = M .difference m1 m2 :: M.Map SmallKey Int
220
+ let d = M .difference ( m1 :: M.Map SmallKey Int ) ( m2 :: M.Map SmallKey String )
221
221
in and (map (\k -> M .member k m1) (A .fromFoldable $ M .keys d)) &&
222
222
and (map (\k -> not $ M .member k d) (A .fromFoldable $ M .keys m2))
223
223
You can’t perform that action at this time.
0 commit comments