[project @ 2000-06-12 13:40:20 by panne]
[ghc-hetmet.git] / ghc / compiler / basicTypes / OccName.lhs
index 98eb7c1..94b50bb 100644 (file)
@@ -68,17 +68,10 @@ type EncodedString = String -- Encoded form
 pprEncodedFS :: EncodedFS -> SDoc
 pprEncodedFS fs
   = getPprStyle        $ \ sty ->
-    if userStyle sty then
-       let
-           s = decode (_UNPK_ fs)
-           c = head s
-       in
-       if startsVarSym c || startsConSym c then
-               parens (text s)
-       else
-               text s 
-    else
-       ptext fs
+    if userStyle sty
+       -- ptext (decodeFS fs) would needlessly pack the string again
+       then text (decode (_UNPK_ fs))
+        else ptext fs
 \end{code}
 
 %************************************************************************