projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
40df254
)
Set stdout to use line buffering in ghc-cabal
author
Ian Lynagh
<igloo@earth.li>
Sun, 17 Apr 2011 17:48:39 +0000
(18:48 +0100)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 17 Apr 2011 17:48:39 +0000
(18:48 +0100)
utils/ghc-cabal/Main.hs
patch
|
blob
|
history
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'