projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dea7447
)
[project @ 1999-11-23 11:37:23 by simonpj]
author
simonpj
<unknown>
Tue, 23 Nov 1999 11:37:23 +0000
(11:37 +0000)
committer
simonpj
<unknown>
Tue, 23 Nov 1999 11:37:23 +0000
(11:37 +0000)
Print module names un-encoded in user style
ghc/compiler/basicTypes/Module.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/basicTypes/Module.lhs
b/ghc/compiler/basicTypes/Module.lhs
index
38a3609
..
40c25f5
100644
(file)
--- a/
ghc/compiler/basicTypes/Module.lhs
+++ b/
ghc/compiler/basicTypes/Module.lhs
@@
-184,7
+184,11
@@
instance Ord Module where
\begin{code}
pprModule :: Module -> SDoc
-pprModule (Module mod _ _) = pprEncodedFS mod
+pprModule (Module mod _ _) = getPprStyle $ \ sty ->
+ if userStyle sty then
+ text (moduleNameUserString mod)
+ else
+ pprModuleName mod
\end{code}