From d9d0c28d3d9508d33e531d3d4ce854333a4df520 Mon Sep 17 00:00:00 2001 From: konsumlamm Date: Sun, 5 Feb 2023 01:08:34 +0000 Subject: Update `Data.List.singleton` doc comment --- libraries/base/Data/OldList.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries') 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] -- cgit v1.2.1