<div dir="ltr">Hi,<div><br></div><div>I am generating code coverage reports using hpc, it works great.</div><div><br></div><div>The reports would be much more helpful if I could somehow tell hpc to treat certain expressions as "covered" though.</div><div><br></div><div>As an example, let's think of "impossible" cases of a function.</div><div><br></div><div><font face="monospace, monospace">f x | check x = result x</font></div><div><font face="monospace, monospace"> | otherwise = error "impossible"</font></div><div><br></div><div>I know there are techniques to get rid of (or minimise the number of) the impossible cases. I also can see how this information can be relevant, i.e. seeing whether `check` always holds or not in the report.</div><div><br></div><div>However, at least for one version of the report, I want the error call like the above example to be treated as covered. Or maybe a different colour could be used to annotate "ignored"?</div><div><br></div><div>Did anyone need/want anything like this? Is it possible?</div><div><br></div><div>My guess is that this is somewhat possible using manually generated .tix files and merging them with the .tix file that is generated in the usual way. However this feels too adhoc, fragile and seems to be too much effort to reach a simple goal.</div><div><br></div><div>Best,</div><div>Ozgur</div><div><br></div><div><div class="gmail_signature"></div>
</div></div>