From 17055da185b8e3ba03f92401f1c0f7a225f55e00 Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Fri, 26 May 2017 09:24:14 +0100 Subject: A bit more tc-tracing --- compiler/typecheck/TcTyClsDecls.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/typecheck/TcTyClsDecls.hs b/compiler/typecheck/TcTyClsDecls.hs index ddb183d8bd..cb46c69832 100644 --- a/compiler/typecheck/TcTyClsDecls.hs +++ b/compiler/typecheck/TcTyClsDecls.hs @@ -555,7 +555,11 @@ getFamDeclInitialKind mb_cusk decl@(FamilyDecl { fdLName = L _ name kcLTyClDecl :: LTyClDecl Name -> TcM () -- See Note [Kind checking for type and class decls] kcLTyClDecl (L loc decl) - = setSrcSpan loc $ tcAddDeclCtxt decl $ kcTyClDecl decl + = setSrcSpan loc $ + tcAddDeclCtxt decl $ + do { traceTc "kcTyClDecl {" (ppr (tyClDeclLName decl)) + ; kcTyClDecl decl + ; traceTc "kcTyClDecl done }" (ppr (tyClDeclLName decl)) } kcTyClDecl :: TyClDecl Name -> TcM () -- This function is used solely for its side effect on kind variables -- cgit v1.2.1