Haskell 98 IO

Simon Peyton-Jones simonpj@microsoft.com
Tue, 18 Dec 2001 01:58:23 -0800

| Anyway, what should the report say?  I think it is reasonable=20
| to expect that stdin & stdout should both be unbuffered in=20
| order for interact to work right.  So the defn of interact should be
|   interact f =3D 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
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.