-
Notifications
You must be signed in to change notification settings - Fork 74
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 is broken with ghc 8.8.1/cabal 3.0 (?) #245
Comments
For whatever it is worth, I'm also seeing these failures with cabal 3.0 and ghc 8.6.5 |
Yeah, |
This fixes various problems with doctest: * sol/doctest#245 * composewell/streamly#83 Also clean up travis.yml for cabal-3.
This fixes various problems with doctest: * sol/doctest#245 * composewell/streamly#83 Also clean up travis.yml for cabal-3.
A coworker clued me in to my problem: cabal 3.0 no longer creates the GHC environment files by default (cabal 2.0 did). If I build my project with |
@travitch, thanks for that. Some more notes:
|
Using ghc environment files is a good way to get further. It results in doctest knowing where to find the packages. We still need doctest to only use the packages of interest for a given build unit or else it has trouble with duplicate modules. As an example, this problem is observable when you have crypto-api and cryptonite installed then import |
There seems to be some difference in behaviour, perhaps what environment is sought for packages?? I honestly have no idea.
I am asking here in case someone is aware of such a (potential) problem.
Repro:
git clone [email protected]:isovector/type-errors.git
git checkout f171628f607d83de18bd96c1d4247674fece6b15
(current master)cabal v2-test
Output
The text was updated successfully, but these errors were encountered: