From: Joachim Breitner Date: Tue, 24 Mar 2020 01:50:31 +0000 (+0000) Subject: Do not emit a warning if the .haddock file is missing X-Git-Tag: archive/raspbian/8.8.1+dfsg1+is+8.6.5+dfsg1-3+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8b954443f27e05a46316939cefb668acb7cf5092;p=ghc.git Do not emit a warning if the .haddock file is missing As it is quite common on Debian installations to install the -dev package without the -doc package. Gbp-Pq: Name no-missing-haddock-file-warning --- diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs index 69137eb4..7367cf83 100644 --- a/utils/ghc-pkg/Main.hs +++ b/utils/ghc-pkg/Main.hs @@ -1888,8 +1888,10 @@ checkPackageConfig pkg verbosity db_stack mapM_ (checkDir True "dynamic-library-dirs") (libraryDynDirs pkg) mapM_ (checkDir True "include-dirs") (includeDirs pkg) mapM_ (checkDir True "framework-dirs") (frameworkDirs pkg) - mapM_ (checkFile True "haddock-interfaces") (haddockInterfaces pkg) - mapM_ (checkDirURL True "haddock-html") (haddockHTMLs pkg) + -- In Debian, it is quite normal that the package is installed without the + -- documentation. Do not print a warning there. + -- mapM_ (checkFile True "haddock-interfaces") (haddockInterfaces pkg) + -- mapM_ (checkDirURL True "haddock-html") (haddockHTMLs pkg) checkDuplicateModules pkg checkExposedModules db_stack pkg checkOtherModules pkg