<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 23 February 2015 at 20:02, Dominic Steinitz <span dir="ltr"><<a href="mailto:dominic@steinitz.org" target="_blank">dominic@steinitz.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I think you are right about it being fragile and becoming a big overhead in maintenance. Maybe one could add some sort of annotation to the sources for which you wish to check coverage and also modify HPC to handle these?</div></div></blockquote></div><br>A simple interface where the user provides a list of function names to be ignored would be a good start.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Something like:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">hpc markup prog.tix --destdir=report --ignore=fail,error,impossible,undefined</div><div class="gmail_extra"><br></div><div class="gmail_extra">It _could_ also be a good idea to have a way of ignoring literals. Flags like --ignore-num-literals and --ignore-string-literals could treat all such literals as covered or ignored.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Maybe I should put this as a feature request to the hpc maintainers.</div><div class="gmail_extra">I am wondering if they maintain an issue tracker or not.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The wiki pages for hpc aren't very helpful...</div><div class="gmail_extra"><br></div><div class="gmail_extra">(Starting from: <a href="https://wiki.haskell.org/GHC/HPC">https://wiki.haskell.org/GHC/HPC</a>)<br></div><div><br></div><div>Ozgur</div><div><br></div>
</div></div>