Strict folds without base case to `Data.Foldable`.

Dominik Schrempf dominik.schrempf at
Wed Jun 30 12:30:44 UTC 2021

Actually, following your link, I cannot find any discussion of the original
question about foldr1' or foldl1'. The discussion goes on about enhancing the
documentation of Data.Foldable. Please let me know if I missed something!


Simon Jakobi via Libraries <libraries at> writes:

> This was discussed in December 2020:
> Am Mi., 30. Juni 2021 um 12:49 Uhr schrieb Ignat Insarov <kindaro at>:
>> Hello.
>> I notice that in `"base" Data.Foldable` there are strict left and
>> right folds, but no corresponding folds without base case, that is,
>> `foldl1'` and `foldr1'`. Can this omission be ameliorated? The
>> implementation is trivial.
>> _______________________________________________
>> Libraries mailing list
>> Libraries at
> _______________________________________________
> Libraries mailing list
> Libraries at

More information about the Libraries mailing list