From ee16dc770603e79d20fde8eec84eae12eb758da6 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 17 Apr 2011 18:48:39 +0100 Subject: [PATCH] Set stdout to use line buffering in ghc-cabal --- utils/ghc-cabal/Main.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/ghc-cabal/Main.hs b/utils/ghc-cabal/Main.hs index 72a5010..d64c224 100644 --- a/utils/ghc-cabal/Main.hs +++ b/utils/ghc-cabal/Main.hs @@ -28,7 +28,8 @@ import System.Exit import System.FilePath main :: IO () -main = do args <- getArgs +main = do hSetBuffering stdout LineBuffering + args <- getArgs case args of "hscolour" : distDir : dir : args' -> runHsColour distDir dir args' -- 1.7.10.4