Record the type in TuplePat (necessary for GADTs)
[ghc-hetmet.git] / ghc / compiler / parser / RdrHsSyn.lhs
index 75229a8..5c5f7d1 100644 (file)
@@ -557,7 +557,7 @@ checkAPat loc e = case e of
                         return (PArrPat ps placeHolderType)
    
    ExplicitTuple es b -> mapM (\e -> checkLPat e) es >>= \ps ->
-                        return (TuplePat ps b)
+                        return (TuplePat ps b placeHolderType)
    
    RecordCon c _ fs   -> mapM checkPatField fs >>= \fs ->
                         return (ConPatIn c (RecCon fs))