Hello! While executing a program of mine I get a message "Fail: <<loop>>" which is not an error which I throw somewhere. So where does it come from? And how can I proceed further to solve the problem? Any hints welcome, Andreas
This means your program fails to terminate, and the runtime detected it (it can't always). It is often caused by forgetting to code a base case in a recursive function, or by getting it wrong. Without some code, it is hard to say more, but take a close look at all your recursive functions. On Fri, 2005-01-07 at 23:18 +0100, Andreas Marth wrote:
Hello!
While executing a program of mine I get a message "Fail: <<loop>>" which is not an error which I throw somewhere. So where does it come from? And how can I proceed further to solve the problem?
Any hints welcome, Andreas
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
On Fri, Jan 07, 2005 at 06:27:03PM -0500, Robert Dockins wrote:
This means your program fails to terminate, and the runtime detected it (it can't always). It is often caused by forgetting to code a base case in a recursive function, or by getting it wrong. Without some code, it is hard to say more, but take a close look at all your recursive functions.
I would rather look at recursive "non-functions" (CAFs?), because that's where GHC can sometimes detect nontermination (AFAIK). I would expect things like these: x = x x = x + 1 fibs = 0 : zipWith (+) fibs (tail fibs) -- subtle bug, 0 : 1 : would work Best regards, Tomasz
participants (3)
-
Andreas Marth -
Robert Dockins -
Tomasz Zielonka