[EMAIL PROTECTED] (Amanda Clare) writes:
> I am using the Hugs 1.4 version as currently on the haskell.org website
> (marked Beta version on the website). I have tried this on a PC with Win95
> and on a sun spac station with sunos4. The problem I find on both machines 
> is that neither hGetContents (IO.hs) nor getContents (Prelude.hs) echo 
> characters to the screen.

You're right, we don't follow the Haskell standard here.  It is possible
to obtain the correct behaviour by adding this line:


     if (h==HSTDIN) putchar(c);

to primHreader at approximately line 500, just before the line

      updapRoot(consChar(c),...);

Having done this, you'll find that examples such as

  interact (filter isAscii) -- from the Haskell 1.4 Report

are virtually useless since they interleave their input and
their output.

Alastair

Reply via email to