X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Frename%2FRnTypes.lhs;h=25a1c454202f85d6e233a5d9b83a657f17a42816;hb=99352475235c88ba88730f896feaf35ac674299c;hp=2cc232cdc4bef994d75d52d0ec40b25d7ee9270e;hpb=ed2f8e2a6ec160a0e57028fbfd4a9c5a3a5e083d;p=ghc-hetmet.git diff --git a/compiler/rename/RnTypes.lhs b/compiler/rename/RnTypes.lhs index 2cc232c..25a1c45 100644 --- a/compiler/rename/RnTypes.lhs +++ b/compiler/rename/RnTypes.lhs @@ -124,7 +124,7 @@ rnHsType doc (HsTyVar tyvar) rnHsType doc ty@(HsOpTy ty1 (L loc op) ty2) = setSrcSpan loc $ - do { ty_ops_ok <- doptM Opt_ScopedTypeVariables -- Badly named option + do { ty_ops_ok <- doptM Opt_TypeOperators ; checkErr ty_ops_ok (opTyErr op ty) ; op' <- lookupOccRn op ; let l_op' = L loc op' @@ -808,7 +808,7 @@ forAllWarn doc ty (L loc tyvar) opTyErr op ty = hang (ptext SLIT("Illegal operator") <+> quotes (ppr op) <+> ptext SLIT("in type") <+> quotes (ppr ty)) - 2 (parens (ptext SLIT("Use -fscoped-type-variables to allow operators in types"))) + 2 (parens (ptext SLIT("Use -XTypeOperators to allow operators in types"))) bogusCharError c = ptext SLIT("character literal out of range: '\\") <> char c <> char '\''