summaryrefslogtreecommitdiff
path: root/ghc/GHCi/UI.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/GHCi/UI.hs')
-rw-r--r--ghc/GHCi/UI.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs
index 9327ac6da7..a2d16080f8 100644
--- a/ghc/GHCi/UI.hs
+++ b/ghc/GHCi/UI.hs
@@ -302,8 +302,8 @@ showSDocForUser' :: GHC.GhcMonad m => SDoc -> m String
showSDocForUser' doc = do
dflags <- getDynFlags
unit_state <- hsc_units <$> GHC.getSession
- unqual <- GHC.getPrintUnqual
- pure $ showSDocForUser dflags unit_state unqual doc
+ name_ppr_ctx <- GHC.getNamePprCtx
+ pure $ showSDocForUser dflags unit_state name_ppr_ctx doc
showSDocForUserQualify :: GHC.GhcMonad m => SDoc -> m String
showSDocForUserQualify doc = do