[GHC] #13704: -main-is flag should change exports in default module header
GHC
ghc-devs at haskell.org
Sat Nov 17 12:52:40 UTC 2018
#13704: -main-is flag should change exports in default module header
-------------------------------------+-------------------------------------
Reporter: cdsmith | Owner: chessai
Type: feature request | Status: new
Priority: normal | Milestone: 8.6.2
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Krzysztof Gogolewski <krz.gogolewski@…>):
In [changeset:"0e7790abf7d19d19f84c86dc95e50beb65462d12/ghc" 0e7790a/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="0e7790abf7d19d19f84c86dc95e50beb65462d12"
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
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13704#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list