X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypes%2FCoercion.lhs;h=1dbd7f3eab1a1a6316a9eabee06c192d12a88d17;hp=ff49a6ef2b3ee5262face93ed9a8838377dcd640;hb=d76c18e05f6366c23144624b696a02fbaa6d26e8;hpb=a1899edb87b3192f192980f392680df05f50f104 diff --git a/compiler/types/Coercion.lhs b/compiler/types/Coercion.lhs index ff49a6e..1dbd7f3 100644 --- a/compiler/types/Coercion.lhs +++ b/compiler/types/Coercion.lhs @@ -41,7 +41,7 @@ import Type ( Type, Kind, PredType, substTyWith, mkAppTy, mkForAllTy, tyVarsOfType, mkTyVarTys ) import TyCon ( TyCon, tyConArity, mkCoercionTyCon, isClosedNewTyCon, - newTyConRhs, newTyConCo, + newTyConRhs, newTyConCo_maybe, isCoercionTyCon, isCoercionTyCon_maybe ) import Var ( Var, TyVar, isTyVar, tyVarKind ) import VarSet ( elemVarSet ) @@ -459,6 +459,6 @@ splitNewTypeRepCo_maybe (TyConApp tc tys) ASSERT( length tvs == length tys ) Just (substTyWith tvs tys rep_ty, mkTyConApp co_con tys) where - co_con = maybe (pprPanic "splitNewTypeRepCo_maybe" (ppr tc)) id (newTyConCo tc) + co_con = maybe (pprPanic "splitNewTypeRepCo_maybe" (ppr tc)) id (newTyConCo_maybe tc) splitNewTypeRepCo_maybe other = Nothing \end{code}