projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -XPatternSigs flag
[ghc-hetmet.git]
/
compiler
/
rename
/
RnTypes.lhs
diff --git
a/compiler/rename/RnTypes.lhs
b/compiler/rename/RnTypes.lhs
index
25a1c45
..
15f4daf
100644
(file)
--- a/
compiler/rename/RnTypes.lhs
+++ b/
compiler/rename/RnTypes.lhs
@@
-572,7
+572,7
@@
rnPat (VarPat name)
returnM (VarPat vname, emptyFVs)
rnPat (SigPatIn pat ty)
returnM (VarPat vname, emptyFVs)
rnPat (SigPatIn pat ty)
- = doptM Opt_GlasgowExts `thenM` \ glaExts ->
+ = doptM Opt_PatternSignatures `thenM` \ glaExts ->
if glaExts
then rnLPat pat `thenM` \ (pat', fvs1) ->
if glaExts
then rnLPat pat `thenM` \ (pat', fvs1) ->
@@
-815,7
+815,7
@@
bogusCharError c
patSigErr ty
= (ptext SLIT("Illegal signature in pattern:") <+> ppr ty)
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"),
dupFieldErr str dup
= hsep [ptext SLIT("duplicate field name"),