| Anyway, what should the report say?  I think it is reasonable 
| to expect that stdin & stdout should both be unbuffered in 
| order for interact to work right.  So the defn of interact should be
| 
|   interact f = do
|      hSetBuffering stdin  NoBuffering -- new
|      hSetBuffering stdout NoBuffering -- new
|      s <- hGetContents
|      putStr (f s)

Simon Marlow raises a good point here.  If 'interact' is to be
interactive
it had better be unbuffered.  So I propose to add the two new lines
above to the Report.   This does not change the intended behaviour
at all.

Simon

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to