summaryrefslogtreecommitdiff
path: root/libraries/base/Data/List.hs
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-09-09 18:46:10 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-09-09 18:50:19 +0200
commit68ecc578c800aa2767dbf48863f4742859b1a8ec (patch)
tree3c8154e2b013fae9abc2ce9d026a87d4cd8899fb /libraries/base/Data/List.hs
parentc6f502b211d03ff8408b17932a4435e4d5f6cd31 (diff)
downloadhaskell-68ecc578c800aa2767dbf48863f4742859b1a8ec.tar.gz
base: replace ver 4.7.1.0 references by 4.8.0.0
Since we now had to major bump due to AMP being landed, `base-4.7.1.0` is not gonna happen, as we're going straight for a `base-4.8.0.0` release. [skip ci] since this is a doc-only change
Diffstat (limited to 'libraries/base/Data/List.hs')
-rw-r--r--libraries/base/Data/List.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Data/List.hs b/libraries/base/Data/List.hs
index f7b58c18b1..5e5acc17ee 100644
--- a/libraries/base/Data/List.hs
+++ b/libraries/base/Data/List.hs
@@ -967,7 +967,7 @@ rqpart cmp x (y:ys) rle rgt r =
-- input list. This is called the decorate-sort-undecorate paradigm, or
-- Schwartzian transform.
--
--- /Since: 4.7.1.0/
+-- /Since: 4.8.0.0/
sortOn :: Ord b => (a -> b) -> [a] -> [a]
sortOn f =
map snd . sortBy (comparing fst) . map (\x -> let y = f x in y `seq` (y, x))