summaryrefslogtreecommitdiff
path: root/compiler/ghci/DebuggerUtils.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-06-12 18:52:05 +0100
committerIan Lynagh <igloo@earth.li>2012-06-12 18:52:05 +0100
commitab50c9c527d19f4df7ee6742b6d79c855d57c9b8 (patch)
treeac78c3fda6f3a8ec8235345f7b02518e0d809ba0 /compiler/ghci/DebuggerUtils.hs
parent543ec0852722318665d2f5228e29d44a5fc973f5 (diff)
downloadhaskell-ab50c9c527d19f4df7ee6742b6d79c855d57c9b8.tar.gz
Pass DynFlags down to showSDoc
Diffstat (limited to 'compiler/ghci/DebuggerUtils.hs')
-rw-r--r--compiler/ghci/DebuggerUtils.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/ghci/DebuggerUtils.hs b/compiler/ghci/DebuggerUtils.hs
index f357b97669..331c294973 100644
--- a/compiler/ghci/DebuggerUtils.hs
+++ b/compiler/ghci/DebuggerUtils.hs
@@ -3,6 +3,7 @@ module DebuggerUtils (
) where
import ByteCodeItbls
+import DynFlags
import FastString
import TcRnTypes
import TcRnMonad
@@ -45,7 +46,8 @@ dataConInfoPtrToName x = do
occFS = mkFastStringByteList occ
occName = mkOccNameFS OccName.dataName occFS
modName = mkModule (fsToPackageId pkgFS) (mkModuleNameFS modFS)
- return (Left$ showSDoc$ ppr modName <> dot <> ppr occName )
+ dflags <- getDynFlags
+ return (Left $ showSDoc dflags $ ppr modName <> dot <> ppr occName)
`recoverM` (Right `fmap` lookupOrig modName occName)
where