[commit: ghc] master: Generalize exposed-modules field in installed package database (e14a973)

git at git.haskell.org git at git.haskell.org
Sat Nov 15 09:39:17 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e14a973215102cb3774e3b4370c64edcff0e10bc/ghc

>---------------------------------------------------------------

commit e14a973215102cb3774e3b4370c64edcff0e10bc
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Sat Nov 15 00:08:53 2014 -0800

    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 at cs.stanford.edu>
    
    Test Plan: validate
    
    Reviewers: simonpj, duncan, austin
    
    Subscribers: thomie, carter, simonmar
    
    Differential Revision: https://phabricator.haskell.org/D421


>---------------------------------------------------------------

e14a973215102cb3774e3b4370c64edcff0e10bc
 compiler/main/PackageConfig.hs            |  27 ++++++-
 compiler/main/Packages.lhs                |  23 +++---
 libraries/Cabal                           |   2 +-
 libraries/bin-package-db/GHC/PackageDb.hs |  98 +++++++++++++++++-------
 testsuite/tests/cabal/Makefile            |   4 +-
 testsuite/tests/cabal/ghcpkg07.stdout     |  13 ++--
 testsuite/tests/cabal/test7a.pkg          |   4 +-
 testsuite/tests/cabal/test7b.pkg          |   4 +-
 utils/ghc-pkg/Main.hs                     | 123 ++++++++++++++++++------------
 9 files changed, 191 insertions(+), 107 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc e14a973215102cb3774e3b4370c64edcff0e10bc


More information about the ghc-commits mailing list