[commit: ghc] master: Make InstalledUnitId be ONLY a FastString. (5bd8e8d)

git at git.haskell.org git at git.haskell.org
Sat Oct 8 08:38:30 UTC 2016


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

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

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

commit 5bd8e8d30c046187f2804db3af1768ea8b07dc41
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Thu Oct 6 13:40:10 2016 -0700

    Make InstalledUnitId be ONLY a FastString.
    
    It turns out that we don't really need to be able to
    extract a ComponentId from UnitId, except in one case.
    So compress UnitId into a single FastString.
    
    The one case where we do need the ComponentId is when
    we are compiling an instantiated version of a package;
    we need the ComponentId to look up the indefinite
    version of this package from the database.  So now we
    just pass it in as an argument -this-component-id.
    
    Also: ghc-pkg now no longer will unregister a package if
    you register one with the same package name, if the
    instantiations don't match.
    
    Cabal submodule update which tracks the same data type
    change.
    
    Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>


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

5bd8e8d30c046187f2804db3af1768ea8b07dc41
 compiler/backpack/DriverBkp.hs      |  27 +++--
 compiler/basicTypes/Module.hs       | 235 +++++++++++++++---------------------
 compiler/basicTypes/Module.hs-boot  |   1 +
 compiler/iface/LoadIface.hs         |   7 +-
 compiler/main/DynFlags.hs           |  72 ++++++-----
 compiler/main/Finder.hs             |   2 +-
 compiler/main/GhcMake.hs            |   4 +-
 compiler/main/HscTypes.hs           |   7 +-
 compiler/main/PackageConfig.hs      |   5 +-
 compiler/main/Packages.hs           |  42 ++++---
 compiler/main/Packages.hs-boot      |   3 +-
 compiler/typecheck/TcBackpack.hs    |  25 ++--
 libraries/Cabal                     |   2 +-
 libraries/ghc-boot/GHC/PackageDb.hs |  56 ++++-----
 utils/ghc-pkg/Main.hs               |  17 +--
 15 files changed, 251 insertions(+), 254 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 5bd8e8d30c046187f2804db3af1768ea8b07dc41


More information about the ghc-commits mailing list