Opened 5 years ago

Closed 5 years ago

#10091 closed feature request (fixed)

Add configurable verbosity level to hpc executable

Reported by: Yuras Owned by: Yuras
Priority: normal Milestone: 7.10.1
Component: Code Coverage Version: 7.8.4
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D660
Wiki Page:

Description

Right now hpc markup writes a notice for each module and for each index file:

Writing: Module.hs.html
Writing: hpc_index.html
Writing: hpc_index_fun.html
Writing: hpc_index_alt.html
Writing: hpc_index_exp.html

That is a bit annoying when you have e.g. 100 modules.

I propose to add --verbosity flag with possible values 0, 1 and 2 (default 1) and suppress the notice for verbosity level 0

Change History (5)

comment:1 Changed 5 years ago by Yuras

Owner: set to Yuras

comment:2 Changed 5 years ago by Yuras

Differential Rev(s): Phab:D660

comment:3 Changed 5 years ago by Austin Seipp <austin@…>

In 1b82619bc2ff36341d916c56b0cd67a378a9c222/ghc:

Add configurable verbosity level to hpc

Summary:
All commands now have `--verbosity` flag, so one can configure
cabal package with `--hpc-options="--verbosity=0"`.

Right now it is used only in `hpc markup` to supress unnecessary
output.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D660

GHC Trac Issues: #10091

comment:4 Changed 5 years ago by Yuras

Milestone: 7.10.1
Status: newmerge

Already to HEAD.

Austin, I just found that there will be one more RC for 7.10. In this case, it is possible to merge the patch?

comment:5 Changed 5 years ago by thoughtpolice

Resolution: fixed
Status: mergeclosed

Done, merged via 00693e1ca9bd7c3225e1cbc377e57fb80a28d835 - thanks!

Note: See TracTickets for help on using tickets.