Commits

Bryan O'Sullivan committed dbc3a18

Add support for hpc coverage checking, sorta

Comments (0)

Files changed (2)

 ^(?:cabal-dev|dist)$
-\.(?:aux|eventlog|h[ip]|log|mix|[oa]|orig|prof|ps|rej|swp)$
+\.(?:aux|eventlog|h[ip]|hs.html|log|[mt]ix|[oa]|orig|prof|ps|rej|swp)$
 ~$
 benchmarks/Arse
 benchmarks/med.txt
 benchmarks/tiny
+hpc.*\.html$
 
 syntax: glob
 .\#*
   Description: Whether to build the library in development mode
   Default: False
 
+Flag hpc
+  Description: Whether to build the library with coverage support
+  Default: False
+
 library
   build-depends: array,
                  base >= 3 && < 5,
                    Data.Attoparsec.Text.Internal
   ghc-options:     -Wall
 
+  if flag(hpc)
+    ghc-options: -fhpc
+
   if flag(developer)
     ghc-prof-options: -auto-all
 
                   QC.Text
 
   ghc-options:
-    -Wall -threaded -rtsopts
+    -fhpc -Wall -threaded -rtsopts
 
   build-depends:
     attoparsec,