[project @ 2005-03-08 17:19:28 by simonmar]
authorsimonmar <unknown>
Tue, 8 Mar 2005 17:19:28 +0000 (17:19 +0000)
committersimonmar <unknown>
Tue, 8 Mar 2005 17:19:28 +0000 (17:19 +0000)
decode OccNames in dumpStyle too

ghc/compiler/basicTypes/OccName.lhs

index 96a2f2f..fb66916 100644 (file)
@@ -93,7 +93,7 @@ type EncodedString = String   -- Encoded form
 pprEncodedFS :: EncodedFS -> SDoc
 pprEncodedFS fs
   = getPprStyle        $ \ sty ->
-    if userStyle sty
+    if userStyle sty || dumpStyle sty
        -- ftext (decodeFS fs) would needlessly pack the string again
        then text (decode (unpackFS fs))
         else ftext fs