Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/ee16dc770603e79d20fde8eec84eae12eb758da6

>---------------------------------------------------------------

commit ee16dc770603e79d20fde8eec84eae12eb758da6
Author: Ian Lynagh <[email protected]>
Date:   Sun Apr 17 18:48:39 2011 +0100

    Set stdout to use line buffering in ghc-cabal

>---------------------------------------------------------------

 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 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'



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to