Ticket #2051: ghc-hide-package-not-error-1.patch

File ghc-hide-package-not-error-1.patch, 638 bytes (added by ajd, 8 years ago)

Patch to GHC so that -hide-package does not raise an error if the package in question does not exist

  • compiler/main/Packages.lhs

    Fri Jan 18 22:24:53 PST 2008  [email protected]
      * GHC Trac 2051: -hide-package on nonexistant package not an error
    diff -rN -u old-ghc/compiler/main/Packages.lhs new-ghc/compiler/main/Packages.lhs
    old new  
    296296
    297297        HidePackage str ->
    298298           case matchingPackages str pkgs of
    299                 Nothing -> missingPackageErr str
     299                Nothing -> return pkgs
    300300                Just (ps,qs) -> return (map hide ps ++ qs)
    301301                  where hide p = p {exposed=False}
    302302