summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-06-11 21:35:41 +0100
committerIan Lynagh <igloo@earth.li>2012-06-11 21:35:41 +0100
commit9d246714d9f3646030b2788030b503664707c46c (patch)
tree92934454880e00681743ae5a5b97b24990187e9a /compiler/utils
parent310ded12b731e5700b4af739a080c3e23904b41e (diff)
downloadhaskell-9d246714d9f3646030b2788030b503664707c46c.tar.gz
Pass DynFlags down to hPrintDump
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/Outputable.lhs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/utils/Outputable.lhs b/compiler/utils/Outputable.lhs
index 5f4b1ff493..738b835537 100644
--- a/compiler/utils/Outputable.lhs
+++ b/compiler/utils/Outputable.lhs
@@ -71,6 +71,7 @@ module Outputable (
pprDebugAndThen,
) where
+import {-# SOURCE #-} DynFlags( DynFlags )
import {-# SOURCE #-} Module( Module, ModuleName, moduleName )
import {-# SOURCE #-} Name( Name, nameModule )
@@ -319,8 +320,8 @@ ifPprDebug d = SDoc $ \ctx ->
\end{code}
\begin{code}
-hPrintDump :: Handle -> SDoc -> IO ()
-hPrintDump h doc = do
+hPrintDump :: DynFlags -> Handle -> SDoc -> IO ()
+hPrintDump _ h doc = do
Pretty.printDoc PageMode h
(runSDoc better_doc (initSDocContext defaultDumpStyle))
hFlush h