-
Notifications
You must be signed in to change notification settings - Fork 696
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
A makefile to run doctests in Cabal-syntax #8703
base: master
Are you sure you want to change the base?
Conversation
Could this be included in CI? Otherwise, I'm not sure who is the target audience of this. |
The target audience is #8147 and ourselves, trying to understand how If you think it makes sense to include this CI at this point, I can give it a shot. However, there is quite a few open issues:
In summary, we are looking for a solution that
This PR is documenting a step in this direction, to save an intermediate result. |
Perhaps, I'd limit the old CI job to Cabal, and add a new one for Cabal-syntax based on this makefile and using a newer GHC. Otherwise, I'm afraid this makefile will get lost and bit rot. Generally, everything that is not in CI tends to bit rot fast, in my experience. |
Goes without saying that I appreciate your effort here anyways. I'm curious: have you tried what nomeata suggested here: #8147 (comment) ? In short, don't switch to |
If I understand this correctly from the code snippet, this is a different approach where you list all the modules that you want to doctest explicitly, in a testsuite file like |
@andreasabel no, my understanding is that you don't have to do anything special, just add
So, it fixes the |
My little experiment is here: ulysses4ever#11 |
And it worked… |
Go for it, then! |
@andreasabel thanks! The PR I referenced was an experiment on my own fork. The PR to the upstream is hot from the oven here #8710. You're very welcome to review! |
make
inCabal-syntax
will run the doctests there.Couldn't get this to work in
Cabal
, ran into the same problems withQuickCheck
as @ulysses4ever in #8504 (comment).See: