[commit: ghc] ghc-7.10: Respect package visibility when deciding wired in packages. (57df7b3)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 12:56:00 UTC 2015


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

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/57df7b312c408338401140474f5afc6951d49cf9/ghc

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

commit 57df7b312c408338401140474f5afc6951d49cf9
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Mon Jan 19 10:23:46 2015 -0800

    Respect package visibility when deciding wired in packages.
    
    Summary:
    Previously, we would consider ALL versions of a wired-in package,
    no matter if they were exposed or not, and pick the latest version.
    This patch is a minor refinement on the behavior: now we try to
    pick the wired in package from just the list of exposed packages,
    and if there are no candidates fall back on the full list.  This
    means that if you do:
    
        -hide-all-packages -package wired-in-OLD-VERSION
    
    it will actually work by default (whereas previously you needed
    to *explicitly* -ignore-package the newer version).  This is especially
    useful for the 'ghc' package.  Fixes #9955.
    
    Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>
    
    Test Plan: validate
    
    Reviewers: simonpj, austin
    
    Reviewed By: austin
    
    Subscribers: carter, thomie
    
    Differential Revision: https://phabricator.haskell.org/D603
    
    GHC Trac Issues: #9955
    
    (cherry picked from commit 1f1595195443700b7c2708fa903969fa2f0a927b)


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

57df7b312c408338401140474f5afc6951d49cf9
 compiler/main/Packages.hs | 84 ++++++++++++++++++++++++++---------------------
 1 file changed, 47 insertions(+), 37 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 57df7b312c408338401140474f5afc6951d49cf9


More information about the ghc-commits mailing list