f50ec37
Description: Do not emit a warning if the .haddock file is missing
f50ec37
 As it is quite common on Debian installations to install the -dev package
f50ec37
 without the -doc package.
f50ec37
Author: Joachim Breitner <nomeata@debian.org>
f50ec37
f50ec37
Index: ghc-7.10/utils/ghc-pkg/Main.hs
f50ec37
===================================================================
f50ec37
--- ghc-7.10.orig/utils/ghc-pkg/Main.hs	2015-07-22 11:17:04.787751658 +0200
f50ec37
+++ ghc-7.10/utils/ghc-pkg/Main.hs	2015-07-22 11:17:04.787751658 +0200
f50ec37
@@ -1533,8 +1533,10 @@
f50ec37
   mapM_ (checkDir True  "library-dirs") (libraryDirs pkg)
f50ec37
   mapM_ (checkDir True  "include-dirs") (includeDirs pkg)
f50ec37
   mapM_ (checkDir True  "framework-dirs") (frameworkDirs pkg)
f50ec37
-  mapM_ (checkFile   True "haddock-interfaces") (haddockInterfaces pkg)
f50ec37
-  mapM_ (checkDirURL True "haddock-html")       (haddockHTMLs pkg)
f50ec37
+  -- In Debian, it is quite normal that the package is installed without the
f50ec37
+  -- documentation. Do not print a warning there.
f50ec37
+  -- mapM_ (checkFile   True "haddock-interfaces") (haddockInterfaces pkg)
f50ec37
+  -- mapM_ (checkDirURL True "haddock-html")       (haddockHTMLs pkg)
f50ec37
   checkDuplicateModules pkg
f50ec37
   checkExposedModules db_stack pkg
f50ec37
   checkOtherModules pkg