Configuring cabal to tell HPC to ignore certain functions

Ivan Perez <[email protected]>
Newsgroups gmane.comp.lang.haskell.cafe
Message-ID <CACZKWEKCkBngkdigu5cxygoJWeb_svnttxNh82R+UYS6uVeFFQ@mail.gmail.com>
Hi Café

I want to configure a cabal package (specifically, copilot-core) so that,
when HPC is executed during testing with coverage enabled, it ignores
certain definitions, for example:

   - Anything that is auto-generated (e.g., Show).
   - Data constructors and field accessors, for which GHC also defines
   functions automatically, are all assumed to work.
   - Proxy doesn't need to be WHNFed.

I think there's a way to extract the tix file and modify it, but I'm trying
to make this automated, and configure the cabal package so that the right
options are passed by cabal to HPC. That way, even hackage will pick it up
when it reports the coverage of our library.

Any pointers?

Thanks!

Ivan

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.