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