[commit: ghc] master: A bit more tc-tracing in TcTyClsDecls (e3e218e)

git at git.haskell.org git at git.haskell.org
Tue Feb 21 17:44:55 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e3e218e2785400efb824f6652f8927690adebd20/ghc

>---------------------------------------------------------------

commit e3e218e2785400efb824f6652f8927690adebd20
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Feb 21 14:40:59 2017 +0000

    A bit more tc-tracing in TcTyClsDecls


>---------------------------------------------------------------

e3e218e2785400efb824f6652f8927690adebd20
 compiler/typecheck/TcTyClsDecls.hs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/compiler/typecheck/TcTyClsDecls.hs b/compiler/typecheck/TcTyClsDecls.hs
index 48a51ba..805120c 100644
--- a/compiler/typecheck/TcTyClsDecls.hs
+++ b/compiler/typecheck/TcTyClsDecls.hs
@@ -147,6 +147,8 @@ tcTyClGroup (TyClGroup { group_tyclds = tyclds
   = do { let role_annots = mkRoleAnnotEnv roles
 
            -- Step 1: Typecheck the type/class declarations
+       ; traceTc "-------- tcTyClGroup ------------" empty
+       ; traceTc "Decls for" (ppr (map (tcdName . unLoc) tyclds))
        ; tyclss <- tcTyClDecls tyclds role_annots
 
            -- Step 1.5: Make sure we don't have any type synonym cycles



More information about the ghc-commits mailing list