FIX #1321: problems with accessing the interpreter's Handles
authorSimon Marlow <simonmar@microsoft.com>
Thu, 10 May 2007 13:37:21 +0000 (13:37 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 10 May 2007 13:37:21 +0000 (13:37 +0000)
commit3211a6a00826b85f732715e59c7c1a81b0586f14
tree8e342d13a2a000bc6e045bcb1d86c0e36f51e99c
parentb1ab4b8a607addc4d097588db5761313c996a41f
FIX #1321: problems with accessing the interpreter's Handles

I've had to redo the way we turn off buffering and flush the
stdin/stdout/stderr Handles in the dynamically-loaded base package.
Compiling the expression "hSetBuffering stdout NoBuffering" and then
re-using the compiled expression didn't work sometimes (see comments
for details).  Now, I'm explicitly looking up the address the stdout
closure and re-using that.  It should be more robust, if somewhat
unclean.
compiler/ghci/GhciMonad.hs