Fix for $topdir appearing in the haddock-html field
authorDuncan Coutts <duncan@well-typed.com>
Thu, 9 Jun 2011 11:15:49 +0000 (12:15 +0100)
committerIan Lynagh <igloo@earth.li>
Thu, 9 Jun 2011 12:02:51 +0000 (13:02 +0100)
I'd naively assumed that the haddock-html field would only use the
$httptopdir variable. Hopefully this will fix the windows build.

utils/ghc-pkg/Main.hs

index 4e6b531..8e08c4f 100644 (file)
@@ -678,7 +678,8 @@ mungePackagePaths top_dir pkgroot pkg =
       libraryDirs = munge_paths (libraryDirs pkg),
       frameworkDirs = munge_paths (frameworkDirs pkg),
       haddockInterfaces = munge_paths (haddockInterfaces pkg),
-      haddockHTMLs = munge_urls (haddockHTMLs pkg)
+                     -- haddock-html is allowed to be either a URL or a file
+      haddockHTMLs = munge_path (munge_urls (haddockHTMLs pkg))
     }
   where
     munge_paths = map munge_path