Simple Haskell program:

  main = getLine >>= print

What would you expect Hugs to do with this if you 
run the program with an empty input stream? And what 
do you think Hugs does instead?-)

For me, it loops, printing white space..

GHC gives me the end-of-file exception I expected, 
so this looks like a bug in Hugs?

Claus
_______________________________________________
Hugs-Bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/hugs-bugs

Reply via email to