On 11/09/12 22:23, Ben Millwood wrote: > if you compile with optimisations you may > find the memory leak goes away. Sure, but should users expect the space complexity being O(n) vs O(1) depending on a compiler switch? Was it intentional that sum is defined in terms of foldl and not foldl'?