
Dear Haskellers, when I execute a program made with GHC (standard Haskell only, no optimization) I get Fail: << loop>> I have -W on, but it only tells me about a single overlapping pattern, which is ok. The same program crashes Hugs alltogether. Any hints for what I should look in my sources? MfG Ingo

<<loop>> means that you have an infinite loop that the system was able to detect at runtime. basically what happens is you have some function which is about to get evaluated. this is essentially a node in a graph. the runtime system marks this node as "i'm being evaluated." however, during the evaluation of this node, it try to evaluate itself, but now sees that it is marked as "i'm being evaluated" and thus knows that this will be an infinite loop. so, yes, you have an infinite loop somehwere in your code. -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Fri, 20 Dec 2002, Ingo Wechsung wrote:
Dear Haskellers,
when I execute a program made with GHC (standard Haskell only, no optimization) I get
Fail: << loop>>
I have -W on, but it only tells me about a single overlapping pattern, which is ok.
The same program crashes Hugs alltogether.
Any hints for what I should look in my sources?
MfG Ingo
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hugs is probably crashing with a stack overflow which is one way that
it can respond to infinite loops. (GHC can respond this way too but
tends to catch more as <<loop>>s and provides nicer error messages on
stack overflow.)
--
Alastair
Ingo Wechsung
Dear Haskellers, when I execute a program made with GHC (standard Haskell only, no optimization) I get
Fail: << loop>>
I have -W on, but it only tells me about a single overlapping pattern, which is ok.
The same program crashes Hugs alltogether.
Any hints for what I should look in my sources?
MfG Ingo
participants (3)
-
Alastair Reid
-
Hal Daume III
-
Ingo Wechsung