X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Frename%2FRnTypes.lhs;h=242e8ecc2a11655bc469875042e224661570e66f;hb=17b297d97d327620ed6bfab942f8992b2446f1bf;hp=25a1c454202f85d6e233a5d9b83a657f17a42816;hpb=99352475235c88ba88730f896feaf35ac674299c;p=ghc-hetmet.git diff --git a/compiler/rename/RnTypes.lhs b/compiler/rename/RnTypes.lhs index 25a1c45..242e8ec 100644 --- a/compiler/rename/RnTypes.lhs +++ b/compiler/rename/RnTypes.lhs @@ -4,6 +4,13 @@ \section[RnSource]{Main pass of renamer} \begin{code} +{-# OPTIONS_GHC -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Warnings +-- for details + module RnTypes ( -- Type related stuff rnHsType, rnLHsType, rnLHsTypes, rnContext, @@ -572,9 +579,9 @@ rnPat (VarPat name) returnM (VarPat vname, emptyFVs) rnPat (SigPatIn pat ty) - = doptM Opt_GlasgowExts `thenM` \ glaExts -> + = doptM Opt_PatternSignatures `thenM` \ patsigs -> - if glaExts + if patsigs then rnLPat pat `thenM` \ (pat', fvs1) -> rnHsTypeFVs doc ty `thenM` \ (ty', fvs2) -> returnM (SigPatIn pat' ty', fvs1 `plusFV` fvs2) @@ -815,7 +822,7 @@ bogusCharError c patSigErr ty = (ptext SLIT("Illegal signature in pattern:") <+> ppr ty) - $$ nest 4 (ptext SLIT("Use -fglasgow-exts to permit it")) + $$ nest 4 (ptext SLIT("Use -XPatternSigs to permit it")) dupFieldErr str dup = hsep [ptext SLIT("duplicate field name"),