[cvs-nhc98] patch applied (nhc98): Prelude sum and product
should really use foldl' not foldl.
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Fri Mar 2 10:48:00 EST 2007
Ian Lynagh <igloo at earth.li> wrote:
> On Fri, Mar 02, 2007 at 05:58:56AM -0800, Malcolm Wallace wrote:
> > Thu Mar 1 08:54:37 PST 2007 Malcolm.Wallace at cs.york.ac.uk
> > * Prelude sum and product should really use foldl' not foldl.
>
> Not according to the Haskell 98 report:
OK, you are the second person to complain within an hour of the checkin!
Maybe I should revert. I was just trying to fix an egregious space leak
for the standard numeric types. There are not too many genuinely lazy
numeric datatypes around.
Regards,
Malcolm
More information about the Cvs-nhc98
mailing list