What stops Data.Foldable from having foldl1'?

Tony Morris tonymorris at gmail.com
Tue Mar 6 20:19:26 UTC 2018


foldl1 on Foldable is not a friendly function :)

You want Data.Foldable1
https://hackage.haskell.org/package/semigroupoids-5.2.1/docs/Data-Semigroup-Foldable.html

Note that this one is friendly.


On 07/03/18 02:30, sonne wrote:
> Good evening.
>
> I notice Data.Foldable ain't got no `foldl1'`, while `foldl'` and
> `foldl1` are both there. Is there a reason? What will it take to have
> it introduced?
>
> I refer to this specific version, which is to my understanding the
> latest to have been released:
> https://hackage.haskell.org/package/base-4.10.1.0/docs/Data-Foldable.html
>
> Thank you.
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20180307/1a0ca4f1/attachment.sig>


More information about the Libraries mailing list