13 Jun
2009
13 Jun
'09
10:53 p.m.
You can make numeric class instances from arbitrary Applicatives [1]. I
imagine a lot of them (e.g. Stream) would want at least some
non-strictness. We might provide strict alternatives for sum and product.
I wonder what else.
[1]
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/applicative-numbe...
- Conal
On Sat, Jun 13, 2009 at 7:03 AM, Keith Sheppard
Is there any reason that sum isn't strict? I can't think of any case where that is a good thing.
Prelude> sum [0 .. 1000000] *** Exception: stack overflow
-Keith -- keithsheppard.name _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe