diff options
author | Ian Lynagh <igloo@earth.li> | 2012-05-29 01:46:07 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-05-29 01:46:07 +0100 |
commit | 78252479dfa2e3ef11d973fdec9e29b5d3810930 (patch) | |
tree | 92e1a59a912e21ccd0fd6583785b1e4d264a3c3c /compiler/utils | |
parent | cd70047385306f4853a7afdfe1e14eda66cab1d4 (diff) | |
download | haskell-78252479dfa2e3ef11d973fdec9e29b5d3810930.tar.gz |
Replace printDump with a new Severity
We now use log_action with severity SevDump, rather than calling
printDump. This means that what happens to dumped info is now under
the control of the GHC API user, rather than always going to stdout.
Diffstat (limited to 'compiler/utils')
-rw-r--r-- | compiler/utils/Outputable.lhs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/utils/Outputable.lhs b/compiler/utils/Outputable.lhs index c8188d798b..3130f7175f 100644 --- a/compiler/utils/Outputable.lhs +++ b/compiler/utils/Outputable.lhs @@ -39,7 +39,7 @@ module Outputable ( colBinder, bold, keyword, -- * Converting 'SDoc' into strings and outputing it - hPrintDump, printDump, + hPrintDump, printForC, printForAsm, printForUser, printForUserPartWay, pprCode, mkCodeStyle, showSDoc, showSDocOneLine, @@ -88,7 +88,7 @@ import qualified Data.IntMap as IM import Data.Set (Set) import qualified Data.Set as Set import Data.Word -import System.IO ( Handle, stdout, hFlush ) +import System.IO ( Handle, hFlush ) import System.FilePath @@ -318,9 +318,6 @@ ifPprDebug d = SDoc $ \ctx -> \end{code} \begin{code} -printDump :: SDoc -> IO () -printDump doc = hPrintDump stdout doc - hPrintDump :: Handle -> SDoc -> IO () hPrintDump h doc = do Pretty.printDoc PageMode h |