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,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.