[Haskell-cafe] Why does this blow the stack?
David Benbennick
dbenbenn at gmail.com
Wed Dec 26 17:13:23 EST 2007
On 12/26/07, Don Stewart <dons at galois.com> wrote:
> Depending on laziness if fine, but depending on undefined strictness semantics
> for particular types is more fragile. Whether Int or Bool or whatever
> type has a strict or lazy accumulator in enumFromTo is entirely
> unspecified -- you can't look up the report to check.
Right, I understand that. But is there any reason not to keep the
Integer version of [a..] lazy, given that we can fix the stack
overflow problem without introducing strictness?
More information about the Haskell-Cafe
mailing list