ghc-paths 0.1.0.2 → 0.1.0.3
raw patch · 2 files changed
+7/−6 lines, 2 filessetup-changed
Files
- Setup.hs +5/−4
- ghc-paths.cabal +2/−2
Setup.hs view
@@ -4,7 +4,8 @@ import Distribution.Simple.LocalBuildInfo import Distribution.InstalledPackageInfo import Distribution.Simple.Program-import Distribution.Simple.PackageIndex as Pkg+--import Distribution.Simple.PackageIndex as Pkg+import Distribution.Simple.PackageSet as Pkg import System.Exit import System.IO@@ -40,9 +41,9 @@ Nothing -> error "ghc was not found" -- figure out docdir from base's haddock-html field- base_pkg = case searchByName (installedPkgs lbi) "base" of- None -> error "no base package"- Unambiguous (x:_) -> x+ base_pkg = case lookupPackageName (installedPkgs lbi) (PackageName "base") of+ [] -> error "no base package"+ [x] -> x _ -> error "base ambiguous" base_html = case haddockHTMLs base_pkg of [] -> ""
ghc-paths.cabal view
@@ -1,5 +1,5 @@ name: ghc-paths-version: 0.1.0.2+version: 0.1.0.3 license: BSD3 license-file: LICENSE copyright: (c) Simon Marlow@@ -9,7 +9,7 @@ synopsis: Knowledge of GHC's installation directories description: Knowledge of GHC's installation directories category: Development-cabal-version: >= 1.2+cabal-version: >= 1.4 build-depends: base build-type: Custom