path for hcp coverage report
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
`stack` has a feature `stack path --local-hpc-root` which retrieves the path to the coverage report generated by `hpc`.
Would it be possible to have a similar feature in `cabal`?
It would be nice so that it becomes easy to call something `xdg-open $(cabal path --local-hpc-root)/hpc_index.html`
Contributor guide
Research direction
Start by locating Cabal's existing `path` command and the handling of local coverage output, then compare its behavior with Stack's `path --local-hpc-root`. Implement the analogous option so it returns the directory containing `hpc_index.html`, and verify that the suggested `xdg-open $(cabal path --local-hpc-root)/hpc_index.html` workflow resolves the expected path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100