-
Notifications
You must be signed in to change notification settings - Fork 75
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
doctest's argument format does not match GHC's #155
Comments
I can't really help with this in terms of coding, but if changes to Doctest are needed, I'll make sure to review them in a timely manner and release a new version to Hackage. Here are some notes:
I hope this will be of some help. |
Just wanted to leave this here: the Thus, if we want to allow arbitrary arguments passed to doctest to be passed verbatim down to say ghc, we need to figure out a way to prevent directory expansion in those cases. I believe a |
Under certain conditions you might want to sidestep the directory expansion and auto argument discovery. --no-magic provides this. External tools invoking doctest, and wishing full control over the passed argument, might want to use --no-magic. This should fix the first part of sol#155.
OK. Is it an acceptable outcome if Cabal's native doctest support only supports doctests that understand |
I believe having Cabal's native doctest only support doctest I just want to have this work with the patched doctest in Cabal, before submitting a final PR. |
I believe this solves this issue, closing. |
I was looking into doctest integration for Cabal in haskell/cabal#2327 and I was hoping that doctest accepted exactly the same set of arguments as GHC, so that I could reuse Cabal's logic for generating GHC flags for doctest. However, this does not seem to be the case.
All tests against doctest HEAD compiled against GHC 7.10.
The first problem I noticed was that
-package-db foo
was not supported.The second problem is
doctest
behaves very strangely when-outputdir
is set:Is there a good reason for these divergences? At least from Cabal's perspective, it would be a lot easier to integrate if the semantics matched up exactly (perhaps this should be a separate mode?)
The text was updated successfully, but these errors were encountered: