What is the simplest way to read a character without echoing it in
Haskell? I have written a CGI program using Haskell. It behaves a little
funny, which did not happen during my experience in Perl. 

In http://pllab.kaist.ac.kr/~khchoi/haskell/mastermind/,
give some digit in the text box and click `Run'. Then look
at the 2nd line, which says "number=xxxx".

Kwanghoon Choi

> From: Jose Romildo Malaquias <[EMAIL PROTECTED]> 
>      Subject: Reading a character without echoing it 
>      Date: Mon, 14 Jun 1999 07:54:32 -0300 
>      To: [EMAIL PROTECTED] 
> 
> How can a single character be read from standard input without echoing it
> to the console in Haskell 98?
> 
> Bird's book mentions two functions for reading a character getChar, getCh :: IO Char
> but Haskell 98 does not seem to have getCh, which should do the no echoing reading.
> 
> Thanks.
> 
> Prof. Jos� Romildo Malaquias <[EMAIL PROTECTED]>
> Departamento de Computa��o
> Universidade Federal de Ouro Preto
> Brasil



Reply via email to