summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkonsumlamm <konsumlamm@gmail.com>2023-02-05 01:08:34 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-02-09 14:07:48 -0500
commitd9d0c28d3d9508d33e531d3d4ce854333a4df520 (patch)
treeb00490e84e32380886c6c367a6ba6b8714e14d57
parent2ea1a6bc7d7c2946b4a3d1c2c19083e09401f9f1 (diff)
downloadhaskell-d9d0c28d3d9508d33e531d3d4ce854333a4df520.tar.gz
Update `Data.List.singleton` doc comment
-rw-r--r--libraries/base/Data/OldList.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Data/OldList.hs b/libraries/base/Data/OldList.hs
index 8e610ebba0..211978dadd 100644
--- a/libraries/base/Data/OldList.hs
+++ b/libraries/base/Data/OldList.hs
@@ -1511,7 +1511,7 @@ 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))
--- | Produce singleton list.
+-- | Construct a list from a single element.
--
-- >>> singleton True
-- [True]