X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcMType.lhs;h=87e2d94d02287cf901d523b20aa09d27639f490e;hb=2eb04ca0f8d0ec72b417cddc60672c696b4a3daa;hp=6e72536698b90668dd09532eab9eb4338b0ab7d9;hpb=940524aec90652b5ef81789c9a453c57c0e42cc9;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcMType.lhs b/compiler/typecheck/TcMType.lhs index 6e72536..87e2d94 100644 --- a/compiler/typecheck/TcMType.lhs +++ b/compiler/typecheck/TcMType.lhs @@ -943,9 +943,9 @@ check_pred_ty dflags ctxt pred@(ClassP cls tys) how_to_allow = parens (ptext SLIT("Use -fglasgow-exts to permit this")) check_pred_ty dflags ctxt pred@(EqPred ty1 ty2) - = do { -- Equational constraints are valid in all contexts if indexed - -- types are permitted - ; checkTc (dopt Opt_IndexedTypes dflags) (eqPredTyErr pred) + = do { -- Equational constraints are valid in all contexts if type + -- families are permitted + ; checkTc (dopt Opt_TypeFamilies dflags) (eqPredTyErr pred) -- Check the form of the argument types ; check_eq_arg_type ty1 @@ -1075,7 +1075,7 @@ checkThetaCtxt ctxt theta badPredTyErr sty = ptext SLIT("Illegal constraint") <+> pprPred sty eqPredTyErr sty = ptext SLIT("Illegal equational constraint") <+> pprPred sty $$ - parens (ptext SLIT("Use -findexed-types to permit this")) + parens (ptext SLIT("Use -ftype-families to permit this")) predTyVarErr pred = sep [ptext SLIT("Non type-variable argument"), nest 2 (ptext SLIT("in the constraint:") <+> pprPred pred)] dupPredWarn dups = ptext SLIT("Duplicate constraint(s):") <+> pprWithCommas pprPred (map head dups)