-
Notifications
You must be signed in to change notification settings - Fork 20
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
Stack support #47
Comments
If I understand well, https://github.com/myfreeweb/sweetroll is an example project using stack? |
It doesn't use hpc, but https://github.com/myfreeweb/http-link-header does. After running tests, |
Is there any progress on |
I'm interested as well, what needs to be done exactly to support Stack? |
I wrote stack-hpc-coveralls, which is based on hpc-coveralls code. It's just an experiment, but at least it's working for my repositories. The changes are pretty heavy and it's really meant to work with Stack out of the box, with little to no configuration. Therefore I did not submit a PR. I may in the future if the author is interested. |
@rubik You're welcome to help adding support for stack to hpc-coveralls! It would be nice if we can keep the functionality backward compatible with cabal and be able to auto-detect whether the project is using cabal or stack (or a new flag could be introduced to specify to use stack, and if not specified it would switch back to cabal). |
@guillaume-nargeot the files get generated under
Which is discoverable from the stack tool:
And in the stack library: hpcDirFromDir. |
@guillaume-nargeot Detecting if a project is using Stack or Cabal should be a matter of just looking for the existence of the If the file is there, then it should be assumed that the project is using Stack. Or if it is not there, then the project should be assumed to be using Cabal. |
stack is the new build tool that's better than cabal-install.
It uses a different directory layout, so hpc-coveralls currently fails:
The text was updated successfully, but these errors were encountered: