diff options
author | konsumlamm <konsumlamm@gmail.com> | 2023-02-05 01:08:34 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-02-09 14:07:48 -0500 |
commit | d9d0c28d3d9508d33e531d3d4ce854333a4df520 (patch) | |
tree | b00490e84e32380886c6c367a6ba6b8714e14d57 | |
parent | 2ea1a6bc7d7c2946b4a3d1c2c19083e09401f9f1 (diff) | |
download | haskell-d9d0c28d3d9508d33e531d3d4ce854333a4df520.tar.gz |
Update `Data.List.singleton` doc comment
-rw-r--r-- | libraries/base/Data/OldList.hs | 2 |
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] |