summaryrefslogtreecommitdiff
path: root/compiler/ghci
diff options
context:
space:
mode:
authorGreg Weber <greg@gregweber.info>2014-11-19 16:43:26 -0600
committerAustin Seipp <austin@well-typed.com>2014-11-19 17:03:06 -0600
commit33c029faef3b5e486def8f3a7c888dfa9f3d8cca (patch)
tree54528d142c7cd91354d00199466518ce320b65e6 /compiler/ghci
parent53a4742d037da2bfd00d1d34a8ea0d49d4cdb490 (diff)
downloadhaskell-33c029faef3b5e486def8f3a7c888dfa9f3d8cca.tar.gz
make TcRnMonad.lhs respect -ddump-to-file
Summary: allows things such as: -ddump-to-file -ddump-splices Test Plan: compile with flags -ddump-to-file -ddump-splices verify that it does output an extra file Try out other flags. I noticed that with -ddump-tc there is some output going to file and some to stdout. Reviewers: hvr, austin Reviewed By: austin Subscribers: simonpj, thomie, carter Differential Revision: https://phabricator.haskell.org/D460 GHC Trac Issues: #9126
Diffstat (limited to 'compiler/ghci')
-rw-r--r--compiler/ghci/RtClosureInspect.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ghci/RtClosureInspect.hs b/compiler/ghci/RtClosureInspect.hs
index 1f751d1d23..953f9b5cb6 100644
--- a/compiler/ghci/RtClosureInspect.hs
+++ b/compiler/ghci/RtClosureInspect.hs
@@ -573,6 +573,7 @@ runTR_maybe hsc_env thing_inside
thing_inside
; return res }
+-- | Term Reconstruction trace
traceTR :: SDoc -> TR ()
traceTR = liftTcM . traceOptTcRn Opt_D_dump_rtti