From 6ffdd5de6ee366056d86f5891d0431d6b7a64db9 Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Mon, 27 Jun 2022 15:22:52 +0200 Subject: Data.Foldable1: Remove references to Foldable-specific note ...as discussed in https://gitlab.haskell.org/ghc/ghc/-/merge_requests/8495#note_439455. --- libraries/base/Data/Foldable1.hs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libraries/base/Data/Foldable1.hs b/libraries/base/Data/Foldable1.hs index c0dac6a0f5..2c3f87ef39 100644 --- a/libraries/base/Data/Foldable1.hs +++ b/libraries/base/Data/Foldable1.hs @@ -302,8 +302,6 @@ foldlMapM1 g f t = g x >>= \y -> foldlM f y xs -- | The largest element of a non-empty structure with respect to the -- given comparison function. - --- See Note [maximumBy/minimumBy space usage] maximumBy :: Foldable1 t => (a -> a -> Ordering) -> t a -> a maximumBy cmp = foldl1' max' where max' x y = case cmp x y of @@ -312,8 +310,6 @@ maximumBy cmp = foldl1' max' -- | The least element of a non-empty structure with respect to the -- given comparison function. - --- See Note [maximumBy/minimumBy space usage] minimumBy :: Foldable1 t => (a -> a -> Ordering) -> t a -> a minimumBy cmp = foldl1' min' where min' x y = case cmp x y of -- cgit v1.2.1