summaryrefslogtreecommitdiff
path: root/compiler/GHC/Utils/Outputable.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Utils/Outputable.hs')
-rw-r--r--compiler/GHC/Utils/Outputable.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/GHC/Utils/Outputable.hs b/compiler/GHC/Utils/Outputable.hs
index 6ff57e5775..96ddbe592a 100644
--- a/compiler/GHC/Utils/Outputable.hs
+++ b/compiler/GHC/Utils/Outputable.hs
@@ -79,6 +79,7 @@ module GHC.Utils.Outputable (
pprFastFilePath, pprFilePathString,
pprModuleName,
+ pprCodeModuleName,
-- * Controlling the style in which output is printed
BindingSite(..),
@@ -1051,6 +1052,8 @@ pprModuleName (ModuleName nm) =
then ztext (zEncodeFS nm)
else ftext nm
+pprCodeModuleName :: ModuleName -> SDoc
+pprCodeModuleName (ModuleName nm) = ztext (zEncodeFS nm)
-----------------------------------------------------------------------
-- The @OutputableP@ class
-----------------------------------------------------------------------