Don't overwrite the set log_action when using --interactive
authorMatthew Pickering <matthewtpickering@gmail.com>
Mon, 21 Jan 2019 01:58:01 +0000 (20:58 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sun, 27 Jan 2019 13:32:55 +0000 (08:32 -0500)
commit10faf44d97095b2f8516b6d449d266f6889dcd70
treed1d0afdc5e54bef7d5c95619d1c86e372e4eff08
parente7164384c26e9d177304ab77fdf6c16431832d7f
Don't overwrite the set log_action when using --interactive

-ddump-json didn't work with --interactive as --interactive overwrote
the log_action in terms of defaultLogAction.

Reviewers: bgamari

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #14078

Differential Revision: https://phabricator.haskell.org/D4533
ghc/GHCi/UI.hs