X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcMType.lhs;h=865c749131e159d59e6cd818e795e8053b0f2558;hb=0f5e104c36b1dc3d8deeec5fef3d65e7b3a1b5ad;hp=1290e03cb6615f1ca933911ee843f8cc7245074b;hpb=d3355c05e88c75e18045a7467aa73b8d48379770;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcMType.lhs b/compiler/typecheck/TcMType.lhs index 1290e03..865c749 100644 --- a/compiler/typecheck/TcMType.lhs +++ b/compiler/typecheck/TcMType.lhs @@ -1595,7 +1595,7 @@ predUndecErr pred msg = sep [msg, nomoreMsg, smallerMsg, undecidableMsg :: SDoc nomoreMsg = ptext (sLit "Variable occurs more often in a constraint than in the instance head") smallerMsg = ptext (sLit "Constraint is no smaller than the instance head") -undecidableMsg = ptext (sLit "Use -fallow-undecidable-instances to permit this") +undecidableMsg = ptext (sLit "Use -XUndecidableInstances to permit this") \end{code} @@ -1635,7 +1635,7 @@ should have only type-variable constraints. Here is another example: data Fix f = In (f (Fix f)) deriving( Eq ) -Here, if we are prepared to allow -fallow-undecidable-instances we +Here, if we are prepared to allow -XUndecidableInstances we could derive the instance instance Eq (f (Fix f)) => Eq (Fix f) but this is so delicate that I don't think it should happen inside @@ -1672,7 +1672,7 @@ validDerivPred _ = False \begin{code} -- Check that a "type instance" is well-formed (which includes decidability --- unless -fallow-undecidable-instances is given). +-- unless -XUndecidableInstances is given). -- checkValidTypeInst :: [Type] -> Type -> TcM () checkValidTypeInst typats rhs