X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fghci%2FInteractiveUI.hs;h=cf301f47fb68c7f00f05dbd8c055844a655e6057;hb=0ef29fb878dd6517d2716afb056bcf2536c2562e;hp=c3c163aab172da51988ae324bcd657a7acf8ed61;hpb=fb2442c0498868330476f5fdde46339eab68e72d;p=ghc-hetmet.git diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index c3c163a..cf301f4 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.27 2001/01/18 10:51:53 simonmar Exp $ +-- $Id: InteractiveUI.hs,v 1.28 2001/01/18 12:54:16 simonmar Exp $ -- -- GHC Interactive User Interface -- @@ -167,7 +167,8 @@ doCommand expr = do expr_expanded <- expandExpr expr -- io (putStrLn ( "Before: " ++ expr ++ "\nAfter: " ++ expr_expanded)) expr_ok <- timeIt (do ok <- evalExpr expr_expanded - when ok (evalExpr "PrelIO.putChar \'\\n\'" >> return ()) + when ok (evalExpr "PrelHandle.hFlush PrelHandle.stdout" >> return ()) + when ok (evalExpr "PrelHandle.hFlush PrelHandle.stderr" >> return ()) return ok) when expr_ok (rememberExpr expr_expanded) return False