diff options
author | Ian Lynagh <igloo@earth.li> | 2011-04-17 18:48:39 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-04-17 18:48:39 +0100 |
commit | ee16dc770603e79d20fde8eec84eae12eb758da6 (patch) | |
tree | d0ab8a5d1a13cfbc537eb62b4f852ae2c719315c /utils/ghc-cabal | |
parent | 40df25409b34352f33f63881a3b9d9846ee03748 (diff) | |
download | haskell-ee16dc770603e79d20fde8eec84eae12eb758da6.tar.gz |
Set stdout to use line buffering in ghc-cabal
Diffstat (limited to 'utils/ghc-cabal')
-rw-r--r-- | utils/ghc-cabal/Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/ghc-cabal/Main.hs b/utils/ghc-cabal/Main.hs index 72a5010f80..d64c2240a8 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' |