Suppress ghc-pkg warnings emitted when an empty packages is being registered
When a package contains a library that has no modules, "./Setup register" tries to register the library with fields "haddock-interfaces:" and "haddock-html:" pointing at non-existent files or directories, and "ghc-pkg register" warns about them. To suppress the warnings prevent these fields from being generated when there are no modules.
Showing
- Cabal/src/Distribution/Simple/Register.hs 2 additions, 2 deletionsCabal/src/Distribution/Simple/Register.hs
- cabal-testsuite/PackageTests/HaddockEmptyLib/empty/empty.cabal 6 additions, 0 deletions...-testsuite/PackageTests/HaddockEmptyLib/empty/empty.cabal
- cabal-testsuite/PackageTests/HaddockEmptyLib/setup.cabal.out 13 additions, 0 deletionscabal-testsuite/PackageTests/HaddockEmptyLib/setup.cabal.out
- cabal-testsuite/PackageTests/HaddockEmptyLib/setup.out 13 additions, 0 deletionscabal-testsuite/PackageTests/HaddockEmptyLib/setup.out
- cabal-testsuite/PackageTests/HaddockEmptyLib/setup.test.hs 6 additions, 0 deletionscabal-testsuite/PackageTests/HaddockEmptyLib/setup.test.hs
- changelog.d/pr-9997 15 additions, 0 deletionschangelog.d/pr-9997
Loading