diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -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
                         [] -> ""
diff --git a/ghc-paths.cabal b/ghc-paths.cabal
--- a/ghc-paths.cabal
+++ b/ghc-paths.cabal
@@ -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
 
