X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FbasicTypes%2FUnique.lhs;h=7a38d4ef1a127f1e724a271adf243486f6520748;hb=7df9b88b9e0565f438f16d8005526ffda80a1dbe;hp=40287867de80a7844df454c5d8b3dce52b2ac13e;hpb=57c02891f82bcfd366945b8583399da963ad5478;p=ghc-hetmet.git diff --git a/compiler/basicTypes/Unique.lhs b/compiler/basicTypes/Unique.lhs index 4028786..7a38d4e 100644 --- a/compiler/basicTypes/Unique.lhs +++ b/compiler/basicTypes/Unique.lhs @@ -54,9 +54,8 @@ import BasicTypes import FastTypes import FastString import Outputable -#ifdef DEBUG -import StaticFlags ( opt_SuppressUniques ) -#endif +import StaticFlags +import Util #if defined(__GLASGOW_HASKELL__) --just for implementing a fast [0,61) -> Char function @@ -202,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)) @@ -286,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