[Haskell] behavioral difference between GHC and GHCi

S. Alexander Jacobson alex at i2x.com
Sun Feb 8 19:06:28 EST 2004

This code works echos lines properly under GHCi,
but just sucks in input when running the GHC
compiled executable.

  import IO
  main= do
	  x<-hGetLine stdin
	  putStr x

Am I doing something wrong?


S. Alexander Jacobson                  mailto:me at alexjacobson.com
tel:917-770-6565                       http://alexjacobson.com

More information about the Haskell mailing list