diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2018-01-31 11:35:20 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2018-01-31 11:35:20 +0000 |
commit | 47031db4ba0677ede438526770ab23908257fc5c (patch) | |
tree | c1246cd08123ba209f4968dd24385649692fb878 /compiler | |
parent | 5e8d314d9ab5a65d329170681db2938cf2d250a3 (diff) | |
download | haskell-47031db4ba0677ede438526770ab23908257fc5c.tar.gz |
A bit more tc-tracing
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/typecheck/TcSMonad.hs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/compiler/typecheck/TcSMonad.hs b/compiler/typecheck/TcSMonad.hs index af77a2c09c..e732fdde4e 100644 --- a/compiler/typecheck/TcSMonad.hs +++ b/compiler/typecheck/TcSMonad.hs @@ -421,11 +421,15 @@ data InertSet } instance Outputable InertSet where - ppr is = vcat [ ppr $ inert_cans is - , ppUnless (null dicts) $ - text "Solved dicts" <+> vcat (map ppr dicts) ] + ppr (IS { inert_cans = ics + , inert_fsks = ifsks + , inert_solved_dicts = solved_dicts }) + = vcat [ ppr ics + , text "Inert fsks =" <+> ppr ifsks + , ppUnless (null dicts) $ + text "Solved dicts =" <+> vcat (map ppr dicts) ] where - dicts = bagToList (dictsToBag (inert_solved_dicts is)) + dicts = bagToList (dictsToBag solved_dicts) emptyInert :: InertSet emptyInert @@ -2899,6 +2903,7 @@ unflattenGivens :: IORef InertSet -> TcM () -- is nicely paired with the creation an empty inert_fsks list. unflattenGivens inert_var = do { inerts <- TcM.readTcRef inert_var + ; TcM.traceTc "unflattenGivens" (ppr (inert_fsks inerts)) ; mapM_ flatten_one (inert_fsks inerts) } where flatten_one (fsk, ty) = TcM.writeMetaTyVar fsk ty |