[Haskell-cafe] what is f=f (not) doing ?

Pasqualino 'Titto' Assini tittoassini at gmail.com
Sat Sep 22 05:54:21 EDT 2007


Hi,

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?

Thanks

            titto








More information about the Haskell-Cafe mailing list