Skip to content

Commit

Permalink
Flush stdout when printing debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoutts committed Aug 12, 2008
1 parent b215f9d commit 2f909e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Distribution/Simple/Utils.hs
Expand Up @@ -242,8 +242,9 @@ info verbosity msg =
--
debug :: Verbosity -> String -> IO ()
debug verbosity msg =
when (verbosity >= deafening) $
when (verbosity >= deafening) $ do
putStr (wrapText msg)
hFlush stdout

-- | Perform an IO action, catching any IO exceptions and printing an error
-- if one occurs.
Expand Down

0 comments on commit 2f909e5

Please sign in to comment.