summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-05-29 01:46:07 +0100
committerIan Lynagh <igloo@earth.li>2012-05-29 01:46:07 +0100
commit78252479dfa2e3ef11d973fdec9e29b5d3810930 (patch)
tree92e1a59a912e21ccd0fd6583785b1e4d264a3c3c /compiler/utils
parentcd70047385306f4853a7afdfe1e14eda66cab1d4 (diff)
downloadhaskell-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.lhs7
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