From: Simon Marlow Date: Tue, 10 Oct 2006 13:44:49 +0000 (+0000) Subject: Use ":Co", not "Co" to prefix coercion TyCon names X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=30098da67fd3ce50ef5a110f57c1780002f83615;hp=5a572299ca38fb302b0288c4ceaeb540287830d5 Use ":Co", not "Co" to prefix coercion TyCon names Avoid possibility of name clash --- diff --git a/compiler/basicTypes/OccName.lhs b/compiler/basicTypes/OccName.lhs index cae76a6..0d1cb37 100644 --- 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"