summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Jakobi <simon.jakobi@gmail.com>2022-06-27 15:22:52 +0200
committerSimon Jakobi <simon.jakobi@gmail.com>2022-07-02 01:33:18 +0200
commit6ffdd5de6ee366056d86f5891d0431d6b7a64db9 (patch)
tree304defd5981fd862665866f1ccb498b834abd3fb
parentb43d140b3f79e024489bbd9338d81d2ac23fc437 (diff)
downloadhaskell-wip/sjakobi/foldable1-remove-note-references.tar.gz
Data.Foldable1: Remove references to Foldable-specific notewip/sjakobi/foldable1-remove-note-references
...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