projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5a57229
)
Use ":Co", not "Co" to prefix coercion TyCon names
author
Simon Marlow
<simonmar@microsoft.com>
Tue, 10 Oct 2006 13:44:49 +0000
(13:44 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Tue, 10 Oct 2006 13:44:49 +0000
(13:44 +0000)
Avoid possibility of name clash
compiler/basicTypes/OccName.lhs
patch
|
blob
|
history
diff --git
a/compiler/basicTypes/OccName.lhs
b/compiler/basicTypes/OccName.lhs
index
cae76a6
..
0d1cb37
100644
(file)
--- a/
compiler/basicTypes/OccName.lhs
+++ b/
compiler/basicTypes/OccName.lhs
@@
-442,8
+442,8
@@
mkDictOcc = mk_simple_deriv varName "$d"
mkIPOcc = mk_simple_deriv varName "$i"
mkSpecOcc = mk_simple_deriv varName "$s"
mkForeignExportOcc = mk_simple_deriv varName "$f"
-mkNewTyCoOcc = mk_simple_deriv tcName "Co"
-mkInstTyCoOcc = mk_simple_deriv tcName "Co" -- derived from rep ty
+mkNewTyCoOcc = mk_simple_deriv tcName ":Co"
+mkInstTyCoOcc = mk_simple_deriv tcName ":Co" -- derived from rep ty
-- Generic derivable classes
mkGenOcc1 = mk_simple_deriv varName "$gfrom"