Refactor HsExpr.MatchGroup
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 4 Jan 2013 10:30:14 +0000 (10:30 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 4 Jan 2013 10:30:14 +0000 (10:30 +0000)
commita8941e2a4fe3b000e6c085701e0c015c5316c6ee
tree7fefa2663395977c0ede0c348fef16d8f81d5a47
parent3671e674757c8f82ec1f0ea9b7c1ed56340b55bc
Refactor HsExpr.MatchGroup

 * Make MatchGroup into a record, and use the record fields

 * Split the type field into two: mg_arg_tys and mg_res_ty
   This makes life much easier for the desugarer when the
   case alterantives are empty

A little bit of this change unavoidably ended up in the preceding
commit about empty case alternatives
15 files changed:
compiler/deSugar/Coverage.lhs
compiler/deSugar/DsArrows.lhs
compiler/deSugar/DsExpr.lhs
compiler/deSugar/DsGRHSs.lhs
compiler/deSugar/DsMeta.hs
compiler/hsSyn/HsExpr.lhs
compiler/hsSyn/HsUtils.lhs
compiler/parser/RdrHsSyn.lhs
compiler/rename/RnBinds.lhs
compiler/rename/RnExpr.lhs
compiler/rename/RnTypes.lhs
compiler/typecheck/TcArrows.lhs
compiler/typecheck/TcBinds.lhs
compiler/typecheck/TcHsSyn.lhs
compiler/typecheck/TcMatches.lhs