Make TcUnify warning-free
[ghc-hetmet.git] / compiler / basicTypes / Unique.lhs
index 36a5352..7a38d4e 100644 (file)
@@ -54,6 +54,8 @@ import BasicTypes
 import FastTypes
 import FastString
 import Outputable
+import StaticFlags
+import Util
 
 #if defined(__GLASGOW_HASKELL__)
 --just for implementing a fast [0,61) -> Char function
@@ -199,11 +201,9 @@ We do sometimes make strings with @Uniques@ in them:
 \begin{code}
 pprUnique :: Unique -> SDoc
 pprUnique uniq
-#ifdef DEBUG
-  | opt_SuppressUniques
+  | debugIsOn && opt_SuppressUniques
   = empty      -- Used exclusively to suppress uniques so you 
   | otherwise  -- can compare output easily
-#endif
   = case unpkUnique uniq of
       (tag, u) -> finish_ppr tag u (text (iToBase62 u))
 
@@ -283,7 +283,6 @@ Allocation of unique supply characters:
        d       desugarer
        f       AbsC flattener
        g       SimplStg
-       l       ndpFlatten
        n       Native codegen
        r       Hsc name cache
        s       simplifier