summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2011-08-05 15:30:54 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2011-08-05 15:30:54 +0100
commitbf79c614f434085813867e9d934bb4044fea1d41 (patch)
treea1db363e029869170abbc7f4815d090afa1ee66e
parent46c19a89d410910bc224a4a8566e506e52b36e43 (diff)
downloadhaskell-bf79c614f434085813867e9d934bb4044fea1d41.tar.gz
A little extra tracing
-rw-r--r--compiler/rename/RnSource.lhs1
-rw-r--r--compiler/typecheck/TcSplice.lhs3
2 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rename/RnSource.lhs b/compiler/rename/RnSource.lhs
index edf69c3304..3d73e4b7bc 100644
--- a/compiler/rename/RnSource.lhs
+++ b/compiler/rename/RnSource.lhs
@@ -133,6 +133,7 @@ rnSrcDecls group@(HsGroup { hs_valds = val_decls,
val_avails = map Avail val_binders
} ;
(tcg_env, tcl_env) <- extendGlobalRdrEnvRn val_avails local_fix_env ;
+ traceRn (ptext (sLit "Val binders") <+> (ppr val_binders)) ;
setEnvs (tcg_env, tcl_env) $ do {
-- Now everything is in scope, as the remaining renaming assumes.
diff --git a/compiler/typecheck/TcSplice.lhs b/compiler/typecheck/TcSplice.lhs
index 6cf2cc10b1..ec7d6dd3f6 100644
--- a/compiler/typecheck/TcSplice.lhs
+++ b/compiler/typecheck/TcSplice.lhs
@@ -828,7 +828,8 @@ runMeta show_code run_and_convert expr
-- Compile and link it; might fail if linking fails
; hsc_env <- getTopEnv
; src_span <- getSrcSpanM
- ; either_hval <- tryM $ liftIO $
+ ; traceTc "About to run (desugared)" (ppr ds_expr)
+ ; either_hval <- tryM $ liftIO $
HscMain.hscCompileCoreExpr hsc_env src_span ds_expr
; case either_hval of {
Left exn -> failWithTc (mk_msg "compile and link" exn) ;