Skip to content

Commit b9edcea

Browse files
ncfavierphadej
authored andcommitted
fix KeyMap.union doc
1 parent 43876c4 commit b9edcea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Aeson/KeyMap.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ toAscList = M.toAscList . unKeyMap
268268
difference :: KeyMap v -> KeyMap v' -> KeyMap v
269269
difference tm1 tm2 = KeyMap (M.difference (unKeyMap tm1) (unKeyMap tm2))
270270

271-
-- The (left-biased) union of two maps. It prefers the first map when duplicate
271+
-- | The (left-biased) union of two maps. It prefers the first map when duplicate
272272
-- keys are encountered, i.e. ('union' == 'unionWith' 'const').
273273
union :: KeyMap v -> KeyMap v -> KeyMap v
274274
union (KeyMap x) (KeyMap y) = KeyMap (M.union x y)
@@ -477,7 +477,7 @@ toAscList = sortBy (comparing fst) . toList
477477
difference :: KeyMap v -> KeyMap v' -> KeyMap v
478478
difference tm1 tm2 = KeyMap (H.difference (unKeyMap tm1) (unKeyMap tm2))
479479

480-
-- The (left-biased) union of two maps. It prefers the first map when duplicate
480+
-- | The (left-biased) union of two maps. It prefers the first map when duplicate
481481
-- keys are encountered, i.e. ('union' == 'unionWith' 'const').
482482
union :: KeyMap v -> KeyMap v -> KeyMap v
483483
union (KeyMap x) (KeyMap y) = KeyMap (H.union x y)

0 commit comments

Comments
 (0)