@@ -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,