@@ -20,6 +20,11 @@ flag hpc
20 default: False
20 default: False
21 manual: True
21 manual: True
23+flag bytestring-builder
24+ description: Depend on the bytestring-builder package for backwards compatibility.
23executable text-tests
28executable text-tests
24 main-is: Tests.hs
29 main-is: Tests.hs
@@ -48,7 +53,6 @@ executable text-tests
48 HUnit >= 1.2,
53 HUnit >= 1.2,
49 QuickCheck >= 2.7,
54 QuickCheck >= 2.7,
50 base == 4.*,
55 base == 4.*,
53 directory,
57 directory,
54 quickcheck-unicode,
58 quickcheck-unicode,
@@ -58,6 +62,12 @@ executable text-tests
58 test-framework-quickcheck2 >= 0.2,
62 test-framework-quickcheck2 >= 0.2,
59 text-tests
63 text-tests
65+ if flag(bytestring-builder)
66+ build-depends: bytestring >= 0.9 && < 0.10.4,
67+ bytestring-builder >= 0.10.4
69+ build-depends: bytestring >= 0.10.4
61executable text-tests-stdio
71executable text-tests-stdio
62 main-is: Tests/IO.hs
72 main-is: Tests/IO.hs
@@ -137,7 +147,12 @@ library
138 base == 4.*,
148 base == 4.*,
142 ghc-prim,
151 ghc-prim,
143 integer-gmp
152 integer-gmp
154+ if flag(bytestring-builder)
155+ build-depends: bytestring >= 0.9 && < 0.10.4,
156+ bytestring-builder >= 0.10.4
158+ build-depends: bytestring >= 0.10.4