18 Dec
2001
18 Dec
'01
9:58 a.m.
| 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
9020
Age (days ago)
9020
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Peyton-Jones