[commit: ghc] wip/type-app: Suggest TypeApplications when it's off (b771c62)
git at git.haskell.org
git at git.haskell.org
Fri Aug 7 12:05:19 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/type-app
Link : http://ghc.haskell.org/trac/ghc/changeset/b771c627f4e0f698e1a71aa29b6cf19efe694962/ghc
>---------------------------------------------------------------
commit b771c627f4e0f698e1a71aa29b6cf19efe694962
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Thu Jul 9 21:01:28 2015 -0400
Suggest TypeApplications when it's off
>---------------------------------------------------------------
b771c627f4e0f698e1a71aa29b6cf19efe694962
compiler/rename/RnExpr.hs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compiler/rename/RnExpr.hs b/compiler/rename/RnExpr.hs
index 4a48b06..e154142 100644
--- a/compiler/rename/RnExpr.hs
+++ b/compiler/rename/RnExpr.hs
@@ -1352,7 +1352,8 @@ sectionErr expr
patSynErr :: HsExpr RdrName -> RnM (HsExpr Name, FreeVars)
patSynErr e = do { addErr (sep [ptext (sLit "Pattern syntax in expression context:"),
- nest 4 (ppr e)])
+ nest 4 (ppr e)] $$
+ text "Did you mean to enable TypeApplications?")
; return (EWildPat, emptyFVs) }
badIpBinds :: Outputable a => SDoc -> a -> SDoc
More information about the ghc-commits
mailing list