Use ":Co", not "Co" to prefix coercion TyCon names
authorSimon Marlow <simonmar@microsoft.com>
Tue, 10 Oct 2006 13:44:49 +0000 (13:44 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 10 Oct 2006 13:44:49 +0000 (13:44 +0000)
Avoid possibility of name clash

compiler/basicTypes/OccName.lhs

index cae76a6..0d1cb37 100644 (file)
@@ -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"