Ticket #2051: ghc-hide-package-not-error-1.patch
| File ghc-hide-package-not-error-1.patch, 0.6 KB (added by ajd, 5 years ago) |
|---|
-
compiler/main/Packages.lhs
Fri Jan 18 22:24:53 PST 2008 alexander.dunlap@gmail.com * 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 296 296 297 297 HidePackage str -> 298 298 case matchingPackages str pkgs of 299 Nothing -> missingPackageErr str299 Nothing -> return pkgs 300 300 Just (ps,qs) -> return (map hide ps ++ qs) 301 301 where hide p = p {exposed=False} 302 302
