2007/12/30, Cristian Baboi <[EMAIL PROTECTED]>:
> A simple question:
>
> Can you write the value of x to a file where x = (1:x) ?

Yes, but you'll have to write it yourself, because Haskell can't
decide by itself that this value is infinite and try to print it with
a recursive definition, if it could do that, it could decide the
halting problem and that's not possible.

-- 
Jedaï
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to