Add tuple sections as a new feature
authorsimonpj@microsoft.com <unknown>
Thu, 23 Jul 2009 06:38:59 +0000 (06:38 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 23 Jul 2009 06:38:59 +0000 (06:38 +0000)
commit58521c72cec262496dabf5fffb057d25ab17a0f7
treef751884ebd8c6934713a2d93e986e2a40e6d3294
parent4b8dfb01980b44bc3284c87aadeada130f94f85f
Add tuple sections as a new feature

This patch adds tuple sections, so that

(x,,z)  means   \y -> (x,y,z)

Thanks for Max Bolinbroke for doing the hard work.

In the end, instead of using two constructors in HsSyn, I used
just one (still called ExplicitTuple) whose arguments can be
Present (LHsExpr id)
or Missing PostTcType

While I was at it, I did a bit of refactoring too.
22 files changed:
compiler/deSugar/Coverage.lhs
compiler/deSugar/DsArrows.lhs
compiler/deSugar/DsExpr.lhs
compiler/deSugar/DsListComp.lhs
compiler/deSugar/DsMeta.hs
compiler/deSugar/DsUtils.lhs
compiler/deSugar/Match.lhs
compiler/hsSyn/Convert.lhs
compiler/hsSyn/HsExpr.lhs
compiler/hsSyn/HsUtils.lhs
compiler/main/DynFlags.hs
compiler/parser/Parser.y.pp
compiler/parser/RdrHsSyn.lhs
compiler/rename/RnExpr.lhs
compiler/rename/RnSource.lhs
compiler/typecheck/TcExpr.lhs
compiler/typecheck/TcGenDeriv.lhs
compiler/typecheck/TcHsSyn.lhs
compiler/typecheck/TcTyClsDecls.lhs
compiler/types/Generics.lhs
compiler/types/TypeRep.lhs
docs/users_guide/glasgow_exts.xml