Skip to content
Snippets Groups Projects
Commit 62450f9a authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Implement "reexported-modules" field, towards fixing GHC bug #8407.


Re-exported modules allow packages to reexport modules from their
dependencies without having to create stub files.  Reexports of the same
original module don't count as ambiguous imports when module finding
occurs.  The syntax is:

    "orig-pkg" OrigName as NewName

You can omit 'as NewName', in which case it is reexported as the same
name.  Self referential aliases work too; however, they're only visible
to packages which depend on this package.

Left to future work: just provide a module name 'OrigName', where ghc-pkg
figures out what the source package is.

Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent bd5f7c26
No related branches found
No related tags found
No related merge requests found
Showing
with 213 additions and 11 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment