summaryrefslogtreecommitdiff
path: root/compiler/utils/Outputable.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/utils/Outputable.hs')
-rw-r--r--compiler/utils/Outputable.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/utils/Outputable.hs b/compiler/utils/Outputable.hs
index 93afffefe2..118ef321f7 100644
--- a/compiler/utils/Outputable.hs
+++ b/compiler/utils/Outputable.hs
@@ -205,6 +205,12 @@ data QualifyName -- Given P:M.T
| NameNotInScope2 -- It's not in scope at all, and M.T is already bound in
-- the current scope, so we must refer to it as "P:M.T"
+instance Outputable QualifyName where
+ ppr NameUnqual = text "NameUnqual"
+ ppr (NameQual _mod) = text "NameQual" -- can't print the mod without module loops :(
+ ppr NameNotInScope1 = text "NameNotInScope1"
+ ppr NameNotInScope2 = text "NameNotInScope2"
+
reallyAlwaysQualifyNames :: QueryQualifyName
reallyAlwaysQualifyNames _ _ = NameNotInScope2