path for hcp coverage report

Open
#12,285 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
haskell
Domain
cli

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.

Description

attention: pr-welcome type: enhancement

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

Dominant language
Haskell
Stars
1.8k
Forks
766
Avg merge
5d 21h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from haskell/cabal

All issues in haskell/cabal

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.