From 30098da67fd3ce50ef5a110f57c1780002f83615 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 10 Oct 2006 13:44:49 +0000 Subject: [PATCH] Use ":Co", not "Co" to prefix coercion TyCon names Avoid possibility of name clash --- compiler/basicTypes/OccName.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 1.7.10.4