Moving Foldable.foldl' inside the type class

Edward Kmett ekmett at gmail.com
Fri Feb 18 05:04:33 CET 2011


Seems reasonable. The existing body can serve as a default implementation.
For symmetry, foldr' should probably follow suit.

On Thu, Feb 17, 2011 at 7:34 PM, Johan Tibell <johan.tibell at gmail.com>wrote:

> Hi all,
>
> It would be nice if foldl' was moved inside the Foldable type class.
> Right now you get terrible performance if you use foldl' from
> Foldable. Ironically it'll also use O(n) space. Someone should move
> the function inside the type class.
>
> Johan
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20110217/44c9d08a/attachment.htm>


More information about the Libraries mailing list