From 1d35581af7f2228a730385bfc37cb3cf5fc48243 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 9 Dec 2006 18:51:52 +0000 Subject: [PATCH] Use System.IO.stderr rather than IO.stderr in GHCi. Fixes trac #1001. GHCi evaluates a command to flush the stdout/stderr buffers, but this command can only use names that are in scope. It used to need IO.stderr from the haskell98 package, but this patch means it only needs things from the base package. --- compiler/ghci/InteractiveUI.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index f1e47cb..b4c1f6e 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -652,7 +652,7 @@ GLOBAL_VAR(turn_off_buffering, error "no flush_stdout", IO ()) no_buf_cmd = "System.IO.hSetBuffering System.IO.stdout System.IO.NoBuffering" ++ " Prelude.>> System.IO.hSetBuffering System.IO.stderr System.IO.NoBuffering" -flush_cmd = "System.IO.hFlush System.IO.stdout Prelude.>> System.IO.hFlush IO.stderr" +flush_cmd = "System.IO.hFlush System.IO.stdout Prelude.>> System.IO.hFlush System.IO.stderr" initInterpBuffering :: Session -> IO () initInterpBuffering session -- 1.7.10.4