There was an error fetching the commit references. Please try again later.
Generalize exposed-modules field in installed package database
Summary: Instead of recording exposed-modules and reexported-modules as seperate fields in the installed package database, this commit merges them into a single field (exposed-modules). The motivation for this change is in preparation for the inclusion of *signatures* into the installed package database, which may also be reexported. Merging the representation means that we can treat reexports uniformly, no matter if they're a normal module or a signature. This commit adds a stub for signatures, but that code isn't wired up to anything yet. Contains Cabal submodule update to accommodate these changes. Signed-off-by:Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, duncan, austin Subscribers: thomie, carter, simonmar Differential Revision: https://phabricator.haskell.org/D421
Showing
- compiler/main/PackageConfig.hs 25 additions, 2 deletionscompiler/main/PackageConfig.hs
- compiler/main/Packages.lhs 11 additions, 12 deletionscompiler/main/Packages.lhs
- libraries/Cabal 1 addition, 1 deletionlibraries/Cabal
- libraries/bin-package-db/GHC/PackageDb.hs 69 additions, 29 deletionslibraries/bin-package-db/GHC/PackageDb.hs
- testsuite/tests/cabal/Makefile 2 additions, 2 deletionstestsuite/tests/cabal/Makefile
- testsuite/tests/cabal/ghcpkg07.stdout 7 additions, 6 deletionstestsuite/tests/cabal/ghcpkg07.stdout
- testsuite/tests/cabal/test7a.pkg 1 addition, 3 deletionstestsuite/tests/cabal/test7a.pkg
- testsuite/tests/cabal/test7b.pkg 1 addition, 3 deletionstestsuite/tests/cabal/test7b.pkg
- utils/ghc-pkg/Main.hs 74 additions, 49 deletionsutils/ghc-pkg/Main.hs
Loading
Please register or sign in to comment