Section 7.1 of the Haskell Report says about the input functions
getChar, getLine, getContents, interact, ...:
"By default, these input functions echo to standard output. Functions in
the I/O library provide full control over echoing."
However, the section about module IO in the Library Report does *not*
mention echoing at all.
Often no echoing is what you really need. The developers of Hugs have
recognised this need and hence their implementations of `getContents'
and `interact' do not perform echoing, contradictory to the report.
Surely this non-conformance is not desirable (I came across this problem
when compiling a simple program with GHC that had been developed with
Hugs) and the module IO should provide functions for controlling
echoing.
Olaf
--
OLAF CHITIL, Lehrstuhl fuer Informatik II, RWTH Aachen, 52056 Aachen,
Germany
Tel: (+49/0)241/80-21212; Fax: (+49/0)241/8888-217
URL: http://www-i2.informatik.rwth-aachen.de/~chitil/