Better names for PArray instance coercions
authorRoman Leshchinskiy <rl@cse.unsw.edu.au>
Wed, 18 Jul 2007 04:50:51 +0000 (04:50 +0000)
committerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Wed, 18 Jul 2007 04:50:51 +0000 (04:50 +0000)
compiler/vectorise/VectType.hs

index 5dceb3b..15b2a5b 100644 (file)
@@ -201,7 +201,7 @@ buildPArrayParentInfo :: Name -> TyCon -> TyCon -> VM TyConParent
 buildPArrayParentInfo orig_name vect_tc repr_tc
   = do
       parray_tc <- builtin parrayTyCon
-      co_name <- cloneName mkInstTyCoOcc orig_name
+      co_name <- cloneName mkInstTyCoOcc (tyConName repr_tc)
 
       let inst_tys = [mkTyConApp vect_tc (map mkTyVarTy tyvars)]