From: Roman Leshchinskiy Date: Thu, 26 Jul 2007 05:28:30 +0000 (+0000) Subject: Add missing coercion X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=dd5556ace6f1943ee5d6dbb7321f1c51d52bebb7;p=ghc-hetmet.git Add missing coercion --- diff --git a/compiler/vectorise/VectType.hs b/compiler/vectorise/VectType.hs index 9d9db53..5873469 100644 --- a/compiler/vectorise/VectType.hs +++ b/compiler/vectorise/VectType.hs @@ -370,12 +370,14 @@ buildReplicatePA vect_tc arr_tc shape <- replicatePA len (ctr_num val) reprs <- liftM concat $ mapM (mk_comp_arrs len val) vect_dcs - + return . mkLams [len_var, val_var] - $ mkConApp arr_dc (map (Type . TyVarTy) (tyConTyVars arr_tc) ++ (shape : reprs)) + . wrapFamInstBody arr_tc arg_tys + $ mkConApp arr_dc (map Type arg_tys ++ (shape : reprs)) where - val_ty = mkTyConApp vect_tc . mkTyVarTys $ tyConTyVars arr_tc - wild = mkWildId val_ty + arg_tys = mkTyVarTys (tyConTyVars arr_tc) + val_ty = mkTyConApp vect_tc arg_tys + wild = mkWildId val_ty vect_dcs = tyConDataCons vect_tc [arr_dc] = tyConDataCons arr_tc