Warn on missing home modules
authorYuras Shumovich <shumovichy@gmail.com>
Fri, 20 Jan 2017 21:53:45 +0000 (16:53 -0500)
committerBen Gamari <ben@smart-cactus.org>
Fri, 20 Jan 2017 21:55:36 +0000 (16:55 -0500)
commit15b9a85ef03e2729d487a6f8460be8880c797609
tree401bc0e8f102c03ff61e7d8d967eefe4accd5960
parentc43011da283bfcef664378bb451d5f3bffcdbe92
Warn on missing home modules

Introduce a warning, -Wmissing-home-modules, to warn about home modules,
not listed in command line.

It is usefull for cabal when user fails to list a module in
`exposed-modules` and `other-modules`.

Test Plan: make TEST=MissingMod

Reviewers: mpickering, austin, bgamari

Reviewed By: bgamari

Subscribers: simonpj, mpickering, thomie

Differential Revision: https://phabricator.haskell.org/D2977

GHC Trac Issues: #13129
compiler/main/DynFlags.hs
compiler/main/GhcMake.hs
docs/users_guide/using-warnings.rst
testsuite/tests/warnings/should_compile/MissingMod.hs [new file with mode: 0644]
testsuite/tests/warnings/should_compile/MissingMod.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/MissingMod1.hs [new file with mode: 0644]
testsuite/tests/warnings/should_compile/all.T
utils/mkUserGuidePart/Options/Warnings.hs