Data.List.maximumBy uses counter-intuitive ordering

Johannes Waldmann johannes.waldmann at htwk-leipzig.de
Fri Dec 28 13:18:54 UTC 2018


Dear all,

this was brought up on the GHC tracker (not by me)

https://ghc.haskell.org/trac/ghc/ticket/15921

and it was suggested for discussion here.

my summary: Data.List.maximumBy is right-biased,
minimumBy is left-biased, and none of this is documented.

- J.W.



More information about the Libraries mailing list