Concat arguments when enabling haddock (#10783)
* Concat arguments when enabling haddock Arguments were unioned with <> which is left-biased, therefore -haddock swallowed all other args as indeed described in #10782. I think the bug was introduced by 80f0a652, which makes the expression modified in this PR to be non-empty if documentation was enabled. Fixes #10782 * Add test for #10783 (concatenate arguments when enabling haddock) --------- Co-authored-by:Matthew Pickering <matthewtpickering@gmail.com> Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Showing
- cabal-install/src/Distribution/Client/ProjectPlanning.hs 10 additions, 7 deletionscabal-install/src/Distribution/Client/ProjectPlanning.hs
- cabal-testsuite/PackageTests/HaddockArgsCombine/CHANGELOG.md 5 additions, 0 deletionscabal-testsuite/PackageTests/HaddockArgsCombine/CHANGELOG.md
- cabal-testsuite/PackageTests/HaddockArgsCombine/HaddockArgsCombine.cabal 14 additions, 0 deletions.../PackageTests/HaddockArgsCombine/HaddockArgsCombine.cabal
- cabal-testsuite/PackageTests/HaddockArgsCombine/app/Main.hs 6 additions, 0 deletionscabal-testsuite/PackageTests/HaddockArgsCombine/app/Main.hs
- cabal-testsuite/PackageTests/HaddockArgsCombine/cabal.out 8 additions, 0 deletionscabal-testsuite/PackageTests/HaddockArgsCombine/cabal.out
- cabal-testsuite/PackageTests/HaddockArgsCombine/cabal.test.hs 3 additions, 0 deletions...l-testsuite/PackageTests/HaddockArgsCombine/cabal.test.hs
- changelog.d/pr-10783 11 additions, 0 deletionschangelog.d/pr-10783
Loading