<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">What I would do would be run<div class=""><br class=""></div><div class=""><font face="Menlo" class="">cabal test --enable-coverage</font></div><div class=""><br class=""></div><div class="">cabal-install has reasonably good support for coverage builds</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Vanessa</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 10, 2019, at 7:57 AM, F L <<a href="mailto:spiridempt@gmail.com" class="">spiridempt@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div style="margin: 0px; padding: 0px 0px 0.25em; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 14px; line-height: inherit; font-family: "Noto Sans", Arial, sans-serif; vertical-align: baseline; color: rgb(26, 26, 27);" class="">I am using Haskell Program Coverage (HPC) to collect coverage information for Pandoc (<a href="https://github.com/jgm/pandoc" class="gmail-_3t5uN8xUmg0TOwRCOGQEcU" rel="noopener noreferrer" target="_blank" style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline">https://github.com/jgm/pandoc</a>). However, after adding the -fhpc option to GHC and running the program, two .tix files are generated. One is test-pandoc.tix in the main directory and the other is pandoc.tix under the "test" directory (test/pandoc.tix). These two files have different contents and I just cannot see the meaning of them from their names. Moreover, I tried to execute "hpc show xxx.tix" for them and test/pandoc.tix gives "hpc: hash in tix file for module Main does not match hash in ./.hpc/Main.mix".</div><div style="margin: 0px; padding: 0.8em 0px 0.25em; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 14px; line-height: inherit; font-family: "Noto Sans", Arial, sans-serif; vertical-align: baseline; color: rgb(26, 26, 27);" class="">So, I wonder the specific generation rules of HPC tix files (possibly including the number and location) and how I can get the correct coverage information.</div><div style="margin: 0px; padding: 0.8em 0px 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 14px; line-height: inherit; font-family: "Noto Sans", Arial, sans-serif; vertical-align: baseline; color: rgb(26, 26, 27);" class="">Thanks very much!</div></div>
_______________________________________________<br class="">Haskell-Cafe mailing list<br class="">To (un)subscribe, modify options or view archives go to:<br class=""><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br class="">Only members subscribed via the mailman list are allowed to post.</div></blockquote></div><br class=""></div></body></html>