Fix trac #15702, as a followon to fix for #13704.
authorChris Smith <cdsmith@gmail.com>
Sat, 17 Nov 2018 11:40:23 +0000 (12:40 +0100)
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>
Sat, 17 Nov 2018 12:52:26 +0000 (13:52 +0100)
commit0e7790abf7d19d19f84c86dc95e50beb65462d12
tree4868453d4f01abd14543317e7a0e3a93d73f2d19
parent798c943781e14b7111431d3c7193c93fcc5ffa3e
Fix trac #15702, as a followon to fix for #13704.

Summary:
The effect of this change is that -main-is changes the default
export list for the main module, but does not apply the same
change to non-main modules.  This fixes some cases where -main-is
was used to wrap a module that expected that default behavior
(exporting `main`, even when that wasn't the main entry point
name).

Reviewers: mpickering, monoidal, bgamari

Subscribers: rwbarton, carter

GHC Trac Issues: #13704, #15702

Differential Revision: https://phabricator.haskell.org/D5322
compiler/typecheck/TcRnExports.hs
docs/users_guide/bugs.rst
testsuite/tests/module/T13704a.hs [moved from testsuite/tests/module/T13704.hs with 100% similarity]
testsuite/tests/module/T13704b1.hs [new file with mode: 0644]
testsuite/tests/module/T13704b2.hs [new file with mode: 0644]
testsuite/tests/module/all.T