Handle file targets in missing home modules warning
authorHerbert Valerio Riedel <hvr@gnu.org>
Mon, 22 May 2017 15:59:56 +0000 (11:59 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 22 May 2017 16:41:20 +0000 (12:41 -0400)
commitdac49bdc79387ca9f91c7c5c9220699efb6239fb
treedb91e9dea573a30636ca0a75687cd9738ccde0bf
parent83ee930fdd125d74939307ed3fa1bf6a2ba7fb36
Handle file targets in missing home modules warning

When main module is listed on command line as a file, we should not
issue a warning about it. See Trac #13727

Reviewers: austin, bgamari, Yuras

Reviewed By: bgamari, Yuras

Subscribers: 23Skidoo, rwbarton, thomie

GHC Trac Issues: #13727

Differential Revision: https://phabricator.haskell.org/D3598
17 files changed:
compiler/main/GhcMake.hs
testsuite/tests/warnings/should_compile/T13727/Makefile [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727a.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727b.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727c.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727d.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727e.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727f.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727g.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727h.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727i.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727j.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/T13727k.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/all.T [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/src-exe/AltMain.hs [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/src-exe/Main.hs [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13727/src-lib/M1.hs [new file with mode: 0644]