Fix trac #15702, as a followon to fix for #13704.

Authored by cdsmith on Nov 17 2018, 5:40 AM.

Description

Fix trac Trac #15702, as a followon to fix for Trac #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: Trac #13704, Trac #15702

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

Details

Committed
monoidalNov 17 2018, 6:52 AM
Differential Revision
D5322: Fix trac #15702, as a followon to fix for #13704.
Parents
rGHC798c943781e1: Minor refactoring
Branches
Unknown
Tags
Unknown