• Edward Z. Yang's avatar
    Implement "reexported-modules" field, towards fixing GHC bug #8407. · 62450f9a
    Edward Z. Yang authored
    
    
    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>
    62450f9a
ModuleExport.hs 3.52 KB