Skip to content

Commit

Permalink
Fix documentation formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
treeowl committed Aug 31, 2016
1 parent eed0db8 commit 860be17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Data/Map/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ data AreWeStrict = Strict | Lazy

-- | /O(log n)/. The expression (@'alterF' f k map@) alters the value @x@ at
-- @k@, or absence thereof. 'alterF' can be used to inspect, insert, delete,
-- or update a value in a 'Map'. In short : @'lookup' k <$> 'alterF' f k m = f
-- or update a value in a 'Map'. In short: @'lookup' k \<$\> 'alterF' f k m = f
-- ('lookup' k m)@.
--
-- Example:
Expand Down
2 changes: 1 addition & 1 deletion Data/Map/Strict/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ alter = go

-- | /O(log n)/. The expression (@'alterF' f k map@) alters the value @x@ at @k@, or absence thereof.
-- 'alterF' can be used to inspect, insert, delete, or update a value in a 'Map'.
-- In short : @'lookup' k <$> 'alterF' f k m = f ('lookup' k m)@.
-- In short: @'lookup' k \<$\> 'alterF' f k m = f ('lookup' k m)@.
--
-- Example:
--
Expand Down
11 changes: 7 additions & 4 deletions Data/Sequence/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -663,10 +663,13 @@ thin12 s pr m (Three a b c) = DeepTh s pr (thin $ m `snocTree` node2 a b) (One12
thin12 s pr m (Four a b c d) = DeepTh s pr (thin $ m `snocTree` node2 a b) (Two12 c d)

-- | Intersperse an element between the elements of a sequence.
-- > intersperse a empty = empty
-- > intersperse a (singleton x) = singleton x
-- > intersperse a (fromList [x,y]) = fromList [x,a,y]
-- > intersperse a (fromList [x,y,z]) = fromList [x,a,y,a,z]
--
-- @
-- intersperse a empty = empty
-- intersperse a (singleton x) = singleton x
-- intersperse a (fromList [x,y]) = fromList [x,a,y]
-- intersperse a (fromList [x,y,z]) = fromList [x,a,y,a,z]
-- @
--
-- @since 0.5.8
intersperse :: a -> Seq a -> Seq a
Expand Down

0 comments on commit 860be17

Please sign in to comment.