Skip to content
Snippets Groups Projects
Joachim Breitner's avatar
Joachim Breitner authored
Previously, foldr1 would be defiend recursively and thus not inline.
This is bad, for example, when maximumBy has a strict comparison
function: Before the BBP, it was implemented via foldl1, which inlined
and yielded good code. With BBP, it goes via foldr1, so we better inline
this as well. Fixes #10830.

Differential Revision: https://phabricator.haskell.org/D1205
3f3ac1cb
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.