Fix buffering problem when GHCi is using the new IO library
authorSimon Marlow <marlowsd@gmail.com>
Tue, 23 Jun 2009 14:26:23 +0000 (14:26 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 23 Jun 2009 14:26:23 +0000 (14:26 +0000)
commitf540ac1cab55f5d4a61e5b1e22ef48d92a7b1cfe
tree1a8a19104cf2e5b15609546848f7d992ee3db8e0
parent0fb9ad3a5e363ec2c7676d91037678ee33f496b7
Fix buffering problem when GHCi is using the new IO library
Behind the scenes, the new IO library always does buffering for read
Handles regardless of NoBuffering.  Normally this isn't visible, but
it causes a problem in GHCi where there are two stdin Handles.

This should fix those ghci test failures that sprung up in full
testsuite runs recently.
ghc/InteractiveUI.hs