H98 Report: input functions
Ross Paterson
ross@soi.city.ac.uk
Fri, 6 Sep 2002 11:21:04 +0100
In 7.1, the Report says of getChar, getContents and friends:
"By default, these input functions echo to standard output."
This would mean that the example given:
main = interact (filter isAscii)
would print the input with all ASCII characters duplicated.
Surely it should say that if the standard input is a terminal device the
input is echoed on that device. Or maybe the sentence should be deleted.
(Hugs does the echoing to stdout for getChar, but not for hGetChar stdin
or getContents.)