Commit f6ee55a8 authored by ian@well-typed.com's avatar ian@well-typed.com

Clarify the wording of the 'insert' haddock; fixes #7421

Wording suggested by Bart Massey.
parent 5e3aec69
......@@ -509,7 +509,7 @@ mapAccumR f s (x:xs) = (s'', y:ys)
(s', ys) = mapAccumR f s xs
-- | The 'insert' function takes an element and a list and inserts the
-- element into the list at the last position where it is still less
-- element into the list at the first position where it is less
-- than or equal to the next element. In particular, if the list
-- is sorted before the call, the result will also be sorted.
-- It is a special case of 'insertBy', which allows the programmer to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment