@@ -1202,8 +1202,8 @@ data AreWeStrict = Strict | Lazy
12021202-- a very large fraction of the time, you might consider using a
12031203-- private copy of the 'Identity' type.
12041204--
1205- -- Note: 'alterF' is a flipped version of the 'at' combinator from
1206- -- ' Control.Lens.At' .
1205+ -- Note: 'alterF' is a flipped version of the @at@ combinator from
1206+ -- @ Control.Lens.At@ .
12071207--
12081208-- @since 0.5.8
12091209alterF :: (Functor f , Ord k )
@@ -1990,7 +1990,7 @@ intersection t1@(Bin _ k x l1 r1) t2
19901990--
19911991-- @
19921992-- m \`restrictKeys\` s = 'filterWithKey' (\k _ -> k ``Set.member`` s) m
1993- -- m \`restrictKeys\` s = m ``intersect `` 'fromSet' (const ()) s
1993+ -- m \`restrictKeys\` s = m ``intersection `` 'fromSet' (const ()) s
19941994-- @
19951995--
19961996-- @since 0.5.8
@@ -2469,7 +2469,7 @@ traverseMaybeMissing f = WhenMissing
24692469
24702470-- | Merge two maps.
24712471--
2472- -- @ merge@ takes two 'WhenMissing' tactics, a 'WhenMatched'
2472+ -- ' merge' takes two 'WhenMissing' tactics, a 'WhenMatched'
24732473-- tactic and two maps. It uses the tactics to merge the maps.
24742474-- Its behavior is best understood via its fundamental tactics,
24752475-- 'mapMaybeMissing' and 'zipWithMaybeMatched'.
@@ -2486,22 +2486,22 @@ traverseMaybeMissing f = WhenMissing
24862486-- Take, for example,
24872487--
24882488-- @
2489- -- m1 = [(0, 'a '), (1, 'b '), (3,'c '), (4, 'd ')]
2489+ -- m1 = [(0, \'a\ '), (1, \'b\ '), (3, \'c\ '), (4, \'d\ ')]
24902490-- m2 = [(1, "one"), (2, "two"), (4, "three")]
24912491-- @
24922492--
2493- -- @ merge@ will first '' align'' these maps by key:
2493+ -- ' merge' will first \" align\" these maps by key:
24942494--
24952495-- @
2496- -- m1 = [(0, 'a '), (1, 'b '), (3,'c '), (4, 'd ')]
2497- -- m2 = [(1, "one"), (2, "two"), (4, "three")]
2496+ -- m1 = [(0, \'a\ '), (1, \'b\ '), (3, \'c\ '), (4, \'d\ ')]
2497+ -- m2 = [(1, "one"), (2, "two"), (4, "three")]
24982498-- @
24992499--
25002500-- It will then pass the individual entries and pairs of entries
25012501-- to @g1@, @g2@, or @f@ as appropriate:
25022502--
25032503-- @
2504- -- maybes = [g1 0 'a ', f 1 'b ' "one", g2 2 "two", g1 3 'c ', f 4 'd ' "three"]
2504+ -- maybes = [g1 0 \'a\ ', f 1 \'b\ ' "one", g2 2 "two", g1 3 \'c\ ', f 4 \'d\ ' "three"]
25052505-- @
25062506--
25072507-- This produces a 'Maybe' for each key:
@@ -2550,7 +2550,7 @@ merge g1 g2 f m1 m2 = runIdentity $
25502550
25512551-- | An applicative version of 'merge'.
25522552--
2553- -- @ mergeA@ takes two 'WhenMissing' tactics, a 'WhenMatched'
2553+ -- ' mergeA' takes two 'WhenMissing' tactics, a 'WhenMatched'
25542554-- tactic and two maps. It uses the tactics to merge the maps.
25552555-- Its behavior is best understood via its fundamental tactics,
25562556-- 'traverseMaybeMissing' and 'zipWithMaybeAMatched'.
@@ -2567,22 +2567,22 @@ merge g1 g2 f m1 m2 = runIdentity $
25672567-- Take, for example,
25682568--
25692569-- @
2570- -- m1 = [(0, 'a '), (1, 'b '), (3,'c '), (4, 'd ')]
2570+ -- m1 = [(0, \'a\ '), (1, \'b\ '), (3, \'c\ '), (4, \'d\ ')]
25712571-- m2 = [(1, "one"), (2, "two"), (4, "three")]
25722572-- @
25732573--
2574- -- @mergeA@ will first '' align'' these maps by key:
2574+ -- @mergeA@ will first \" align\" these maps by key:
25752575--
25762576-- @
2577- -- m1 = [(0, 'a '), (1, 'b '), (3,'c '), (4, 'd ')]
2578- -- m2 = [(1, "one"), (2, "two"), (4, "three")]
2577+ -- m1 = [(0, \'a\ '), (1, \'b\ '), (3, \'c\ '), (4, \'d\ ')]
2578+ -- m2 = [(1, "one"), (2, "two"), (4, "three")]
25792579-- @
25802580--
25812581-- It will then pass the individual entries and pairs of entries
25822582-- to @g1@, @g2@, or @f@ as appropriate:
25832583--
25842584-- @
2585- -- actions = [g1 0 'a ', f 1 'b ' "one", g2 2 "two", g1 3 'c ', f 4 'd ' "three"]
2585+ -- actions = [g1 0 \'a\ ', f 1 \'b\ ' "one", g2 2 "two", g1 3 \'c\ ', f 4 \'d\ ' "three"]
25862586-- @
25872587--
25882588-- Next, it will perform the actions in the @actions@ list in order from
0 commit comments