X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypes%2FCoercion.lhs;h=fb91a0de67d9d14d63e8e9d637e903c04e37aaee;hb=feb584b7ffd49827ff2b6e716965cfdcd344570e;hp=d715016352cb4b2da0074a5890b79a9a5f192fc8;hpb=909d2dd885f5eebaf7c12cf15d5ac153d646566e;p=ghc-hetmet.git diff --git a/compiler/types/Coercion.lhs b/compiler/types/Coercion.lhs index d715016..fb91a0d 100644 --- a/compiler/types/Coercion.lhs +++ b/compiler/types/Coercion.lhs @@ -38,7 +38,7 @@ import Type ( Type, Kind, PredType, substTyWith, mkAppTy, mkForAllTy, mkFunTy, splitAppTy_maybe, splitForAllTy_maybe, coreView, kindView, mkTyConApp, isCoercionKind, isEqPred, mkAppTys, coreEqType, splitAppTys, isTyVarTy, splitTyConApp_maybe, - tyVarsOfType + tyVarsOfType, mkTyVarTys ) import TyCon ( TyCon, tyConArity, mkCoercionTyCon, isNewTyCon, newTyConRhs, newTyConCo, @@ -340,10 +340,10 @@ mkDataInstCoercion name tvs family instTys rep_tycon where coArity = length tvs - rule args = (substTyWith tvs tys $ -- with sigma = [tys/tvs], - TyConApp family instTys, -- sigma (F ts) - TyConApp rep_tycon instTys, -- :=: R tys - rest) -- surplus arguments + rule args = (substTyWith tvs tys $ -- with sigma = [tys/tvs], + TyConApp family instTys, -- sigma (F ts) + TyConApp rep_tycon tys, -- :=: R tys + rest) -- surplus arguments where tys = take coArity args rest = drop coArity args