summaryrefslogtreecommitdiff
path: root/compiler/ghci/Debugger.hs
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-10-16 13:08:15 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-16 13:08:15 +0100
commit86f6acdc46d0c27e113d7c3c90cb1b07014cb1b7 (patch)
tree64b44570541236ba3d62113a100dee24d1bbc925 /compiler/ghci/Debugger.hs
parent5cd52bfd00de6ba168d4447cc67b74686681786d (diff)
downloadhaskell-86f6acdc46d0c27e113d7c3c90cb1b07014cb1b7.tar.gz
Rename DynFlag to GeneralFlag
This avoids confusion due to [DynFlag] and DynFlags being completely different types.
Diffstat (limited to 'compiler/ghci/Debugger.hs')
-rw-r--r--compiler/ghci/Debugger.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ghci/Debugger.hs b/compiler/ghci/Debugger.hs
index 20b7e13e7f..9d10711dbc 100644
--- a/compiler/ghci/Debugger.hs
+++ b/compiler/ghci/Debugger.hs
@@ -224,7 +224,7 @@ pprTypeAndContents id = do
--------------------------------------------------------------
-- Utils
-traceOptIf :: GhcMonad m => DynFlag -> SDoc -> m ()
+traceOptIf :: GhcMonad m => GeneralFlag -> SDoc -> m ()
traceOptIf flag doc = do
dflags <- GHC.getSessionDynFlags
when (dopt flag dflags) $ liftIO $ printInfoForUser dflags alwaysQualify doc