Dont print uniques in interface files; tidying should have sorted it out
System -> pprSysLocal sty uniq occ
Local -> pprLocal sty uniq occ
System -> pprSysLocal sty uniq occ
Local -> pprLocal sty uniq occ
-pprLocal sty uniq occ
- | codeStyle sty = pprUnique uniq
- | debugStyle sty = pprOccName occ <>
- text "{-" <> pprUnique10 uniq <> text "-}"
- | otherwise = pprOccName occ
-
pprGlobal sty name uniq mod occ
| codeStyle sty = ppr (moduleName mod) <> char '_' <> pprOccName occ
pprGlobal sty name uniq mod occ
| codeStyle sty = ppr (moduleName mod) <> char '_' <> pprOccName occ
| unqualStyle sty name = pprOccName occ
| otherwise = ppr (moduleName mod) <> dot <> pprOccName occ
| unqualStyle sty name = pprOccName occ
| otherwise = ppr (moduleName mod) <> dot <> pprOccName occ
+pprLocal sty uniq occ
+ | codeStyle sty = pprUnique uniq
+ | debugStyle sty = pprOccName occ <>
+ text "{-" <> pprUnique10 uniq <> text "-}"
+ | otherwise = pprOccName occ -- User and Iface styles
+
+-- Like Local, except that we only omit the unique in Iface style
pprSysLocal sty uniq occ
| codeStyle sty = pprUnique uniq
pprSysLocal sty uniq occ
| codeStyle sty = pprUnique uniq
+ | ifaceStyle sty = pprOccName occ -- The tidy phase has ensured that OccNames
+ -- are enough
| otherwise = pprOccName occ <> char '_' <> pprUnique uniq
| otherwise = pprOccName occ <> char '_' <> pprUnique uniq
+ -- If the tidy phase hasn't run, the OccName
+ -- is unlikely to be informative (like 's'),
+ -- so print the unique
%************************************************************************
%* *
\subsection{Overloaded functions related to Names}
%************************************************************************
%* *
\subsection{Overloaded functions related to Names}