Add support for *named* holes; an extension of -XTypeHoles
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 30 Jan 2013 12:39:07 +0000 (12:39 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 30 Jan 2013 12:39:07 +0000 (12:39 +0000)
commit677144b858f4a425e77399bdfbfcd43dbabd1488
tree52a7e0218010eb672c473d38e96dc6535c304613
parent9c661e0709e63d97a5ca6bcadc23f362abda88dc
Add support for *named* holes; an extension of -XTypeHoles

The idea is that you can use "_foo" rather than just "_"
as a "hole" in an expression, and this name shows up in
type errors etc.

The changes are very straightforward.
Thanks for Thijs Alkemade for making the running here.
compiler/deSugar/Coverage.lhs
compiler/deSugar/DsExpr.lhs
compiler/hsSyn/HsExpr.lhs
compiler/rename/RnEnv.lhs
compiler/rename/RnExpr.lhs
compiler/typecheck/TcCanonical.lhs
compiler/typecheck/TcErrors.lhs
compiler/typecheck/TcExpr.lhs
compiler/typecheck/TcHsSyn.lhs
compiler/typecheck/TcRnTypes.lhs
docs/users_guide/glasgow_exts.xml