[Haskell-cafe] curious about sum

Don Stewart dons at galois.com
Mon Jun 15 23:18:49 EDT 2009

> The answer is sometimes (only if you use an optimize flag):

You're turning on the strictness analyser. That's enabled with -O or

But sum should be using a tail recursive foldl'. It's a bug in the H98
report, IMO.

-- Don

More information about the Haskell-Cafe mailing list