@@ -13,14 +13,14 @@ maintainer: Bryan O'Sullivan <bos@serpentine.com>
1313category: Text
1414build-type: Simple
1515
16−cabal-version: >=1.2
16+cabal-version: >=1.8
1717
1818flag hpc
1919 description: Enable HPC to generate coverage reports
2020 default: False
2121
2222executable text-tests
23− hs-source-dirs: src ../..
23+ hs-source-dirs: src
2424 main-is: Data/Text/Tests.hs
2525
2626 ghc-options:
@@ -28,7 +28,6 @@ executable text-tests
2828 -threaded
2929 -O0
3030
31− -- Optional HPC support
3231 if flag(hpc)
3332 ghc-options:
3433 -fhpc
@@ -38,6 +37,7 @@ executable text-tests
3837 -DHAVE_DEEPSEQ
3938
4039 build-depends:
40+ text-tests,
4141 base >= 4 && < 5,
4242 bytestring >= 0.9 && < 0.10,
4343 deepseq >= 1.1 && < 1.2,
@@ -50,7 +50,7 @@ executable text-tests
5050 test-framework-hunit >= 0.2 && < 0.3
5151
5252executable text-tests-stdio
53− hs-source-dirs: src ../..
53+ hs-source-dirs: src
5454 main-is: Data/Text/Tests/IO.hs
5555
5656 ghc-options:
@@ -63,4 +63,63 @@ executable text-tests-stdio
6363 -fhpc
6464
6565 build-depends:
66+ text-tests,
6667 base >= 4 && < 5
68+
69+library
70+ hs-source-dirs: ../..
71+ exposed-modules:
72+ Data.Text
73+ Data.Text.Array
74+ Data.Text.Encoding
75+ Data.Text.Encoding.Error
76+ Data.Text.Foreign
77+ Data.Text.IO
78+ Data.Text.Internal
79+ Data.Text.Lazy
80+ Data.Text.Lazy.Builder
81+ Data.Text.Lazy.Builder.Int
82+ Data.Text.Lazy.Builder.RealFloat
83+ Data.Text.Lazy.Encoding
84+ Data.Text.Lazy.IO
85+ Data.Text.Lazy.Internal
86+ Data.Text.Lazy.Read
87+ Data.Text.Read
88+ Data.Text.Encoding.Fusion
89+ Data.Text.Encoding.Fusion.Common
90+ Data.Text.Encoding.Utf16
91+ Data.Text.Encoding.Utf32
92+ Data.Text.Encoding.Utf8
93+ Data.Text.Fusion
94+ Data.Text.Fusion.CaseMapping
95+ Data.Text.Fusion.Common
96+ Data.Text.Fusion.Internal
97+ Data.Text.Fusion.Size
98+ Data.Text.IO.Internal
99+ Data.Text.Lazy.Builder.Functions
100+ Data.Text.Lazy.Builder.RealFloat.Functions
101+ Data.Text.Lazy.Encoding.Fusion
102+ Data.Text.Lazy.Fusion
103+ Data.Text.Lazy.Search
104+ Data.Text.Search
105+ Data.Text.Unsafe
106+ Data.Text.UnsafeChar
107+ Data.Text.UnsafeShift
108+ Data.Text.Util
109+
110+ if flag(hpc)
111+ ghc-options:
112+ -fhpc
113+
114+ cpp-options:
115+ -DHAVE_DEEPSEQ
116+ -DASSERTS
117+ -DINTEGER_GMP
118+
119+ build-depends:
120+ array,
121+ base >= 4 && < 5,
122+ bytestring >= 0.9 && < 1.0,
123+ deepseq >= 1.1 && < 1.2,
124+ integer-gmp >= 0.2 && < 0.3,
125+ ghc-prim >= 0.2 && < 0.3