From: Joachim Breitner Date: Tue, 21 Jun 2022 16:57:57 +0000 (+0100) Subject: Do not emit a warning if the .haddock file is missing X-Git-Tag: archive/raspbian/9.0.2-4+rpi1~1^2^2^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ea0db1afd462bc6aca6802253904be5dbab938b5;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 37fd5ba5..44e53582 100644 --- a/utils/ghc-pkg/Main.hs +++ b/utils/ghc-pkg/Main.hs @@ -1875,8 +1875,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