At 11:09 am 24/11/97, Sigbjorn Finne wrote:
>Olaf Chitil writes:
>> 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.
>
>the POSIX libraries that comes with GHC provide control over terminal
>characteristics such as echoing. I agree that echoing control should
>be provided through IO in std. Haskell, perhaps a function like
>`setEchoing' below would suffice?
Indeed setEchoing was in the original monadic I/O design.
I can't see a reason not to reinstate it, though it might have
no effect on some systems.
Kevin
----------
Division of Computer Science, Tel: +44-1334 463241 (Direct)
School of Mathematical Fax: +44-1334 463278
and Computational Sciences, URL:
http://www.dcs.st-and.ac.uk/~kh/kh.html
University of St. Andrews, Fife, KY16 9SS.