summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Jakobi <simon.jakobi@gmail.com>2022-06-27 15:22:52 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-07-02 10:12:39 -0400
commit9e79f6d09c9fbd81150a45d307f753141453c945 (patch)
tree4c6db583e475667dbaec374cd9cb7e3b31053209
parentbf7991b0538b0c994a5442c7e2acac4dc038d52e (diff)
downloadhaskell-9e79f6d09c9fbd81150a45d307f753141453c945.tar.gz
Data.Foldable1: Remove references to Foldable-specific note
...as discussed in https://gitlab.haskell.org/ghc/ghc/-/merge_requests/8495#note_439455.
-rw-r--r--libraries/base/Data/Foldable1.hs4
1 files changed, 0 insertions, 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