-
Notifications
You must be signed in to change notification settings - Fork 24
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
running cabal-doctest on code that does FFI #37
Comments
Could you try adding |
That seems to work, thanks! However, it leaves For instance, in my example above, if I have Do you know of an easy way to make it so that doctest doesn't leave around these Also, do you want me to send a PR to |
@cdepillabout you could try |
Thanks for the suggestion about However, when I re-run the
If I delete the directory passed to I'm not sure the best way to fix this. I'll probably go ahead and edit my
That makes sense 👍 |
Hmm, one more unfortunate thing about needing to use |
@cdepillabout can you make a small package to reproduce the problems. I think sol/doctest#217 can help in some situations (i.e. when you don't use non-exposed internals) |
@phadej I'm sorry, I don't remember too much about what was causing this, and I don't have access to the code anymore that was causing this. (It was at a previous job.) Please feel free to close this. |
I'm trying to run cabal-doctest on a package that contains code that does FFI, but I am getting an error about an
Illegal foreign declaration
:Here's the
mypackage-doctests
stanza out of the cabal file:The
DocTest.hs
file is identical to the one defined here. TheSetup.hs
file in the repository is identical to the one defined here.Is it possible to run doctests on code that does FFI?
If not, is there an easy way to tell
cabal-doctest
that I don't actually need that file tested, but please test the other ones?The text was updated successfully, but these errors were encountered: