DynFlags: Introduce -show-mods-loaded flag
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 6 Nov 2017 20:35:19 +0000 (15:35 -0500)
committerBen Gamari <ben@smart-cactus.org>
Mon, 6 Nov 2017 21:38:55 +0000 (16:38 -0500)
commit8613e61de62178e76cd0f8915bd1fbe9c200a039
treee4360b59ef7c54da0f9f1e3ab005e816de512513
parent35642f434ae9dff0d1bb8b5a6f1e725cd051c726
DynFlags: Introduce -show-mods-loaded flag

This flag reintroduces the verbose module name output produced by GHCi's
:load command behind a new flag, -show-mods-loaded. This was originally
removed in D3651 but apparently some tools (e.g. haskell-mode) rely on
this output.

Addresses #14427.

Test Plan: Validate

Reviewers: svenpanne

Reviewed By: svenpanne

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D4164
compiler/main/DynFlags.hs
docs/users_guide/ghci.rst
ghc/GHCi/UI.hs
testsuite/tests/driver/T8526/T8526.stdout
testsuite/tests/ghci/scripts/T1914.stdout
testsuite/tests/ghci/scripts/T6105.stdout
testsuite/tests/ghci/scripts/ghci058.stdout