diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -4,7 +4,7 @@
 import Distribution.Simple.LocalBuildInfo
 import Distribution.InstalledPackageInfo
 import Distribution.Simple.Program
-import Distribution.Simple.PackageIndex as Pkg
+import qualified Distribution.Simple.PackageIndex as Pkg
 
 import System.Exit
 import System.IO
@@ -37,9 +37,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 Pkg.searchByName (installedPkgs lbi) "base" of
+                        Pkg.None -> error "no base package"
+                        Pkg.Unambiguous (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.7
+version: 0.1.0.8
 license: BSD3
 license-file: LICENSE
 copyright: (c) Simon Marlow
