X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Ftypes%2FCoercion.lhs;h=c2261adcd472743d6327b5ba9874703ba0eba06f;hb=e4fdc426413d178c86d3ba93702aad5eb17734bf;hp=e17d0b007275a8e95fb4a75d8fdb7fc5c9dafdff;hpb=ac704fcac946590eef0ec91ae19f3b47d779a75f;p=ghc-hetmet.git diff --git a/compiler/types/Coercion.lhs b/compiler/types/Coercion.lhs index e17d0b0..c2261ad 100644 --- a/compiler/types/Coercion.lhs +++ b/compiler/types/Coercion.lhs @@ -275,8 +275,8 @@ mkUnsafeCoercion ty1 ty2 -- See note [Newtype coercions] in TyCon -mkNewTypeCoercion :: Name -> TyCon -> ([TyVar], Type) -> TyCon -mkNewTypeCoercion name tycon (tvs, rhs_ty) +mkNewTypeCoercion :: Name -> TyCon -> [TyVar] -> Type -> TyCon +mkNewTypeCoercion name tycon tvs rhs_ty = mkCoercionTyCon name co_con_arity rule where co_con_arity = length tvs