Blame SOURCES/ghc-Debian-no-missing-haddock-file-warning.patch

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