Skip to content
  • Edward Z. Yang's avatar
    Do not zero out version number when processing wired-in packages. · 22520cd7
    Edward Z. Yang authored
    
    
    Summary:
    Previously, GHC would look for instances of wired-in packages in the
    in-memory package database and null out the version number.  This was
    necessary when the sourcePackageId was used to determine the linker
    symbols; however, we now use a package key, so only that needs to be
    updated.
    
    Long-term, we can remove this hack by ensuring that Cabal actually records
    the proper package key in the database.  This will also fix an unrelated
    hack elsewhere.
    
    Keeping version numbers means that wired in packages get rendered differently
    when output by GHC.  This is the source of all the test-case output changes.
    
    Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
    
    Test Plan: validate
    
    Reviewers: hvr, austin
    
    Subscribers: simonmar, ezyang, carter
    
    Differential Revision: https://phabricator.haskell.org/D170
    22520cd7