Support for "with" renaming syntax, and output a feature flag.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Mon, 11 Aug 2014 17:40:13 +0000 (18:40 +0100)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Wed, 19 Nov 2014 01:41:08 +0000 (17:41 -0800)
commit7c748d9fcf12bd16e0de56187fa6fcf3d6dbf39a
tree88339e0a7bed26792a66a8903216f75525d5788e
parent1019e3c6f90e32785c6a75726282b7362e921047
Support for "with" renaming syntax, and output a feature flag.

Summary:
- Feature flag indicates to Cabal that we support thinning and renaming as
  it needs.

- Support -package "base with (Foo as Bar)" which brings the ordinary
  modules into scope, as well as adding the renamings to scope.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: simonpj, austin

Subscribers: thomie, carter

Differential Revision: https://phabricator.haskell.org/D485
compiler/main/DynFlags.hs
compiler/main/Packages.lhs
docs/users_guide/packages.xml
testsuite/tests/ghc-api/T9595.hs