You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @LeventErkok. The discussion in that PR is long and it looks like my original PR description became stale as the patch progressed. Based on this comment by @alt-romes it looks like the haddock-version-cpp option was never introduced and the decision was made to remove the __HADDOCK_VERSION__ macro altogether. Apologies for the inconvenience. What is your use-case for the macro?
For my particular case, I'd like to hide doc-test setup segments from generated Haddock output. Without having a way to tell whether we're running under haddock or not, this is impossible to do.
At the end of the day, it seems like it'd be useful to have a mechanism for users to determine if haddock is the starting point. I understand the motivation for avoiding rebuilds, but if the user chooses to do so, there should be a way; to maintain old behavior if nothing else.
Following the discussion in #9177
@FinleyMcIlwaine I want to have access to
__HADDOCK_VERSION__
; alas, using the mechanism described in #9177 doesn't seem to work.To be specific, I created a
project.cabal
file, with contents:but this doesn't seem to make
__HADDOCK_VERSION__
defined as a macro in source files. Any advice?The text was updated successfully, but these errors were encountered: