<div dir="ltr"><div>Hi all,</div><div><br></div><div>What analysis does the hackage server run to determine the coverage level of, or rating given to, a particular package?</div><div><br></div><div>For example, for one package it is showing this icon:</div><div><br></div><div><a href="https://img.shields.io/static/v1?label=Coverage&message=32%&color=red">https://img.shields.io/static/v1?label=Coverage&message=32%&color=red</a></div><div><br></div><div>What does that actually mean? The build log states:</div><div><h3>Code Coverage</h3>
<table class="gmail-fancy">
<tbody><tr><th colspan="2">expressions</th><td>32% (224/684)</td></tr>
<tr><th colspan="1" rowspan="3">boolean</th><th>guards</th><td>100% (0/0) </td></tr>
<tr><th>conditions</th><td> 20% (1/5) </td></tr>
<tr><th>qualifiers</th><td>100% (0/0)</td></tr>
<tr><th colspan="2">alternatives</th><td>27% (5/18)</td></tr>
<tr><th colspan="2">local declarations</th><td>40% (6/15)</td></tr>
<tr><th colspan="2">top-level declarations</th><td>32% (29/90)</td></tr></tbody></table></div><div><br></div><div>Is it possible to see details of how hackage is arriving to these conclusion, and to replicate these results locally?<br></div><div><br></div><div>Thanks,</div><div><br></div><div>Ivan<br></div></div>