Skip to content
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

Explain that cabal repl --with-ghc=doctest-parallel can't exist #36

Open
ysangkok opened this issue Apr 22, 2022 · 1 comment
Open

Explain that cabal repl --with-ghc=doctest-parallel can't exist #36

ysangkok opened this issue Apr 22, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@ysangkok
Copy link

In the "Future of this project" section, it is said that

It would be lovely if we could get rid of the needs for write-ghc-environment-files: always

Doctest-0.20 allows for a new repl invocation mechanism, mentioned in their changelog. For Servant, it seems to enable getting rid of the mentioned flag.

It seems that this trick can't work for doctest-parallel, since there is no executable to reference. Is that correct? Would you accept a PR explaining this?

@martijnbastiaan
Copy link
Owner

Yes, that's correct. Using cabal repl would get us back to running against the interpreted code, which is something doctest-parallel is trying to avoid.

Would you accept a PR explaining this?

Absolutely!

As a side-note; cabal-docspec parses files in dist-newstyle to find libraries and package dbs. This would be a way to get rid of environment files. I opted not to when I started working on doctest-parallel, because I felt it was too much effort for something that other build tools (stack/nix) handle without any custom logic.

@martijnbastiaan martijnbastiaan added the documentation Improvements or additions to documentation label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants