Skip to content

Commit

Permalink
Haddock: Don't pass --quickjump uncoditionally
Browse files Browse the repository at this point in the history
Fix #9060 and improve #8326, i.e. with GHC < 9.4 `cabal haddock
--enable-doc` works in more situations. #8326 is not fixed because
`cabal haddock --enable-doc --haddock-for-hackage` still fails
and doesn't seem to be fixable without upgrading to a newer
GHC (9.4+) and Haddock.
  • Loading branch information
ulysses4ever committed Jun 29, 2023
1 parent 1723d22 commit 29e37d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal/src/Distribution/Simple/Haddock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ renderPureArgs version comp platform args =
$ args
else []
, ["--since-qual=external" | isVersion 2 20]
, [ "--quickjump" | isVersion 2 19, _ <- flagToList . argQuickJump $ args
, [ "--quickjump" | isVersion 2 19, True <- flagToList . argQuickJump $ args
]
, [ "--hyperlinked-source" | isVersion 2 17, True <- flagToList . argLinkedSource $ args
]
Expand Down

0 comments on commit 29e37d4

Please sign in to comment.