X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcMatches.lhs;h=cb18b045006104e3f2f0fe4a74f93b4c01e6b1e3;hb=bd8a952b1ec55c1c8fe6db968f8f0cc08596a550;hp=cbe594072963dc6b4cb85f51449d01dc6929f7b0;hpb=f1cc3eb980a634e62f2739a7a25387c902fa9d8a;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcMatches.lhs b/compiler/typecheck/TcMatches.lhs index cbe5940..cb18b04 100644 --- a/compiler/typecheck/TcMatches.lhs +++ b/compiler/typecheck/TcMatches.lhs @@ -65,7 +65,8 @@ tcMatchesFun fun_name inf matches exp_ty -- sensible location. Note: we have to do this odd -- ann-grabbing, because we don't always have annotations in -- hand when we call tcMatchesFun... - checkArgs fun_name matches + traceTc (text "tcMatchesFun" <+> (ppr fun_name $$ ppr exp_ty)) + ; checkArgs fun_name matches -- ToDo: Don't use "expected" stuff if there ain't a type signature -- because inconsistency between branches @@ -441,6 +442,7 @@ tcLcStmt m_tc ctxt (GroupStmt stmts bindersMap by using) elt_ty thing_inside -- Ensure that every old binder of type b is linked up with its new binder which should have type [b] ; let list_bndr_ids = zipWith mk_list_bndr list_bndr_names bndr_ids bindersMap' = bndr_ids `zip` list_bndr_ids + -- See Note [GroupStmt binder map] in HsExpr ; using' <- case using of Left e -> do { e' <- tcPolyExpr e using_ty; return (Left e') }