Record the type in TuplePat (necessary for GADTs)
authorsimonpj@microsoft.com <unknown>
Thu, 2 Feb 2006 12:44:05 +0000 (12:44 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 2 Feb 2006 12:44:05 +0000 (12:44 +0000)
commit04feba252e40d16101b92948cd1e13c7bc1f3062
tree643e52fe09b0acae81ce46e775d5724df29cc09f
parentfe108ff1b0d4b52679ba6deddadf5d2fb3fa8f22
Record the type in TuplePat (necessary for GADTs)

We must record the type of a TuplePat after typechecking, just like a ConPatOut,
so that desugaring works correctly for GADTs. See comments with the declaration
of HsPat.TuplePat, and test gadt15
16 files changed:
ghc/compiler/deSugar/Check.lhs
ghc/compiler/deSugar/DsExpr.lhs
ghc/compiler/deSugar/DsListComp.lhs
ghc/compiler/deSugar/DsMeta.hs
ghc/compiler/deSugar/DsUtils.lhs
ghc/compiler/deSugar/Match.lhs
ghc/compiler/deSugar/MatchCon.lhs
ghc/compiler/hsSyn/Convert.lhs
ghc/compiler/hsSyn/HsPat.lhs
ghc/compiler/hsSyn/HsUtils.lhs
ghc/compiler/parser/RdrHsSyn.lhs
ghc/compiler/rename/RnTypes.lhs
ghc/compiler/typecheck/TcExpr.lhs
ghc/compiler/typecheck/TcHsSyn.lhs
ghc/compiler/typecheck/TcPat.lhs
ghc/compiler/types/Generics.lhs