-
Notifications
You must be signed in to change notification settings - Fork 710
build-type: Custom
seems to break doctests when using haddock
#7213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is added as a temporary workaround until [this upstream][1] issue can be closed out [1]: haskell/cabal#7213 Signed-off-by: Wolfgang E. Sanyer <[email protected]>
This is added as a temporary workaround until [this upstream][1] issue can be closed out [1]: haskell/cabal#7213 Signed-off-by: Wolfgang E. Sanyer <[email protected]> Signed-off-by: Sergei Trofimovich <[email protected]>
AFAIK, doctests don't require Custom setups any more. BTW, the most up to date cabal ticket about doctests (with links to other tickets), is here: #4500 |
@Mikolaj wrote:
Ah, that is something I should learn. Do you have a link to a howto? |
Actually, I'm not sure about the unqualified version of my claim any more. However, if you are willing to run doctests with Edit: also on topic: https://twitter.com/TechnoEmpress/status/1457398534525923328 |
Another alternative: https://github.com/phadej/cabal-extras/tree/master/cabal-docspec |
@fgaz: Thanks for the pointer. @Mikolaj: Ah, you are using https://github.com/Hexirp/doctest-driver-gen. I need to look into this! |
I think there are other such tools, as well. |
Describe the bug
If the
build-type: Custom
is used, which is necessary fordoctest
, then running./setup haddock
ends up deleting some files that are necessary for the test-suite to run. Re-running./setup build
will re-generate the deleted files.To Reproduce
doctest
test-suite
target depends on thelibrary
The text was updated successfully, but these errors were encountered: