[Haskell-cafe] Re: Haskell maximum stack depth

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Feb 19 16:13:47 EST 2008


On Tue, 2008-02-19 at 12:22 +0000, Adrian Hey wrote:

> To be honest, in all my years of Haskelling I can't think of a single
> occasion where I've had a program get stuck in an infinite loop. I've
> had plenty of stack overflows, and they're reported on the mailing
> lists pretty regularly, but on all such occasions it's been caused
> by deep but very definitely finite recursion.

It's really pretty easy. I've occasionally done it by accident, it just
requires changing names about in a let that was not recursive and
suddenly it is recursive in a way that was not intended.

Duncan



More information about the Haskell-Cafe mailing list