Haskell 98 IO

Simon Peyton-Jones [email protected]
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
|=20
|   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
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