git.iko.soy/typeable/attoparsec
on master help sign in
Add support for hpc coverage checking, sorta
commitff22532086903afaabe3dc48496e77b21b9102ea authorBryan O'Sullivan <bos@serpentine.com> dateMon 28 Nov 2011, 16:33 (15 years ago) parent06183da
2 files changed+10−2
.hgignore+2−1 attoparsec.cabal+8−1
.hgignore+2−1
@@ -1,9 +1,10 @@
11^(?:cabal-dev|dist)$
2−\.(?:aux|eventlog|h[ip]|log|mix|[oa]|orig|prof|ps|rej|swp)$
2+\.(?:aux|eventlog|h[ip]|hs.html|log|[mt]ix|[oa]|orig|prof|ps|rej|swp)$
33~$
44benchmarks/Arse
55benchmarks/med.txt
66benchmarks/tiny
7+hpc.*\.html$
78
89syntax: glob
910.\#*
attoparsec.cabal+8−1
@@ -34,6 +34,10 @@ Flag developer
3434 Description: Whether to build the library in development mode
3535 Default: False
3636
37+Flag hpc
38+ Description: Whether to build the library with coverage support
39+ Default: False
40+
3741library
3842 build-depends: array,
3943 base >= 3 && < 5,
@@ -62,6 +66,9 @@ library
6266 Data.Attoparsec.Text.Internal
6367 ghc-options: -Wall
6468
69+ if flag(hpc)
70+ ghc-options: -fhpc
71+
6572 if flag(developer)
6673 ghc-prof-options: -auto-all
6774
@@ -73,7 +80,7 @@ test-suite tests
7380 QC.Text
7481
7582 ghc-options:
76− -Wall -threaded -rtsopts
83+ -fhpc -Wall -threaded -rtsopts
7784
7885 build-depends:
7986 attoparsec,