Switch from -this-package-key to -this-unit-id.
A small cosmetic change, but we have to do a bit of work to actually support it: - Cabal submodule update, so that Cabal passes us -this-unit-id when we ask for it. This includes a Cabal renaming to be consistent with Unit ID, which makes ghc-pkg a bit more scrutable. - Build system is updated to use -this-unit-id rather than -this-package-key, to avoid deprecation warnings. Needs a version test so I resurrected the old test we had (sorry rwbarton!) - I've *undeprecated* -package-name, so that we are in the same state as GHC 7.10, since the "correct" flag will have only entered circulation in GHC 8.0. - I removed -package-key. Since we didn't deprecate -package-id I think this should not cause any problems for users; they can just change their code to use -package-id. - The package database is indexed by UNIT IDs, not component IDs. I updated the naming here. - I dropped the signatures field from ExposedModule; nothing was using it, and instantiatedWith from the package database field. - ghc-pkg was updated to use unit ID nomenclature, I removed the -package-key flags but I decided not to add any new flags for now. Signed-off-by:Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: austin, hvr, bgamari Reviewed By: bgamari Subscribers: 23Skidoo, thomie, erikd Differential Revision: https://phabricator.haskell.org/D1780
Showing
- compiler/ghc.cabal.in 9 additions, 6 deletionscompiler/ghc.cabal.in
- compiler/main/DynFlags.hs 31 additions, 14 deletionscompiler/main/DynFlags.hs
- compiler/main/HscTypes.hs 2 additions, 2 deletionscompiler/main/HscTypes.hs
- compiler/main/PackageConfig.hs 4 additions, 14 deletionscompiler/main/PackageConfig.hs
- compiler/main/Packages.hs 3 additions, 8 deletionscompiler/main/Packages.hs
- configure.ac 5 additions, 0 deletionsconfigure.ac
- docs/users_guide/8.0.1-notes.rst 8 additions, 0 deletionsdocs/users_guide/8.0.1-notes.rst
- docs/users_guide/packages.rst 11 additions, 6 deletionsdocs/users_guide/packages.rst
- libraries/Cabal 1 addition, 1 deletionlibraries/Cabal
- libraries/base/base.cabal 1 addition, 1 deletionlibraries/base/base.cabal
- libraries/ghc-boot/GHC/PackageDb.hs 30 additions, 53 deletionslibraries/ghc-boot/GHC/PackageDb.hs
- libraries/ghc-prim/ghc-prim.cabal 1 addition, 1 deletionlibraries/ghc-prim/ghc-prim.cabal
- libraries/integer-gmp/integer-gmp.cabal 1 addition, 1 deletionlibraries/integer-gmp/integer-gmp.cabal
- libraries/integer-simple/integer-simple.cabal 2 additions, 2 deletionslibraries/integer-simple/integer-simple.cabal
- libraries/template-haskell/template-haskell.cabal 6 additions, 3 deletionslibraries/template-haskell/template-haskell.cabal
- mk/config.mk.in 2 additions, 0 deletionsmk/config.mk.in
- rts/ghc.mk 3 additions, 3 deletionsrts/ghc.mk
- rules/distdir-way-opts.mk 13 additions, 1 deletionrules/distdir-way-opts.mk
- testsuite/tests/module/base01/Makefile 2 additions, 2 deletionstestsuite/tests/module/base01/Makefile
- testsuite/tests/rename/prog006/Makefile 1 addition, 1 deletiontestsuite/tests/rename/prog006/Makefile
Loading
Please register or sign in to comment