<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
I guess you entered a black hole! :-)<br>
The problem is that don't understand black holes myself, I just got
introduced with the same thing yesterday :-) I confused me a lot too.<br>
The only explanation I could give you intuitively is that GHCi is
running in multi threaded execution mode, and that two or more
execution threads are waiting for each other forever, creating a
</a>seems to confirm that?<br>
If you try the same using (Win)HUGS, you'll get 100% CPU time usage.<br>
Pasqualino 'Titto' Assini wrote:
if I define:
f = f
and then try to evaluate 'f' in GHCi, as one would expect, the interpreter
never returns an answer.
The funny thing is that, while it is stuck in an infinite loop, GHCi doesn't
seem to use any CPU time at all.
How is this possible?
Haskell-Cafe mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a>