projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set stdout to use line buffering in ghc-cabal
[ghc-hetmet.git]
/
utils
/
ghc-cabal
/
Main.hs
diff --git
a/utils/ghc-cabal/Main.hs
b/utils/ghc-cabal/Main.hs
index
72a5010
..
d64c224
100644
(file)
--- 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'