make TcRnMonad.lhs respect -ddump-to-file
authorGreg Weber <greg@gregweber.info>
Wed, 19 Nov 2014 22:43:26 +0000 (16:43 -0600)
committerAustin Seipp <austin@well-typed.com>
Wed, 19 Nov 2014 23:03:06 +0000 (17:03 -0600)
commit33c029faef3b5e486def8f3a7c888dfa9f3d8cca
tree54528d142c7cd91354d00199466518ce320b65e6
parent53a4742d037da2bfd00d1d34a8ea0d49d4cdb490
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
compiler/ghci/RtClosureInspect.hs
compiler/main/ErrUtils.lhs
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcRnMonad.lhs
docs/users_guide/7.10.1-notes.xml
testsuite/tests/indexed-types/should_fail/T8129.stdout