@@ -26,33 +26,37 @@ flag bounds-checking-enabled
26
26
manual : False
27
27
default : False
28
28
29
- common base { build-depends : base >= 4 && < 5 }
29
+ common base { build-depends : base >= 4 && < 5 }
30
30
31
- common QuickCheck { build-depends : QuickCheck >= 2.10 && < 2.14 }
32
- common bytestring { build-depends : bytestring >= 0.9 && < 0.11 }
33
- common criterion { build-depends : criterion >= 1.2 && < 1.6 }
34
- common deepseq { build-depends : deepseq >= 1.4 && < 1.5 }
35
- common directory { build-depends : directory >= 1.2 && < 1.4 }
36
- common exceptions { build-depends : exceptions >= 0.8 && < 0.11 }
37
- common ghc-prim { build-depends : ghc-prim >= 0.5 && < 0.6 }
38
- common hedgehog { build-depends : hedgehog >= 1.0 && < 1.1 }
39
- common hspec { build-depends : hspec >= 2.4 && < 2.8 }
40
- common hw-hspec-hedgehog { build-depends : hw-hspec-hedgehog >= 0.1 && < 0.2 }
41
- common mmap { build-depends : mmap >= 0.5 && < 0.6 }
42
- common semigroups { build-depends : semigroups >= 0.8.4 && < 0.20 }
43
- common transformers { build-depends : transformers >= 0.4 && < 0.6 }
44
- common vector { build-depends : vector >= 0.12 && < 0.13 }
45
- common unliftio-core { build-depends : unliftio-core >= 0.1.2.0 && < 0.2 }
31
+ common QuickCheck { build-depends : QuickCheck >= 2.10 && < 2.14 }
32
+ common bytestring { build-depends : bytestring >= 0.9 && < 0.11 }
33
+ common criterion { build-depends : criterion >= 1.2 && < 1.6 }
34
+ common deepseq { build-depends : deepseq >= 1.4 && < 1.5 }
35
+ common directory { build-depends : directory >= 1.2 && < 1.4 }
36
+ common doctest { build-depends : doctest >= 0.16.2 && < 0.17 }
37
+ common doctest-discover { build-depends : doctest-discover >= 0.2 && < 0.3 }
38
+ common exceptions { build-depends : exceptions >= 0.8 && < 0.11 }
39
+ common ghc-prim { build-depends : ghc-prim >= 0.5 && < 0.6 }
40
+ common hedgehog { build-depends : hedgehog >= 1.0 && < 1.1 }
41
+ common hspec { build-depends : hspec >= 2.4 && < 2.8 }
42
+ common hw-hspec-hedgehog { build-depends : hw-hspec-hedgehog >= 0.1 && < 0.2 }
43
+ common mmap { build-depends : mmap >= 0.5 && < 0.6 }
44
+ common semigroups { build-depends : semigroups >= 0.8.4 && < 0.20 }
45
+ common transformers { build-depends : transformers >= 0.4 && < 0.6 }
46
+ common vector { build-depends : vector >= 0.12 && < 0.13 }
47
+ common unliftio-core { build-depends : unliftio-core >= 0.1.2.0 && < 0.2 }
46
48
47
- common common
49
+ common hw-prim
50
+ build-depends : hw-prim
51
+
52
+ common config
48
53
default-language : Haskell2010
49
54
ghc-options : -Wall -O2 -msse4.2
50
55
if flag(bounds-checking-enabled)
51
56
cpp-options : -DBOUNDS_CHECKING_ENABLED
52
57
53
58
library
54
- import : base
55
- , common
59
+ import : base, config
56
60
, bytestring
57
61
, deepseq
58
62
, ghc-prim
@@ -112,15 +116,15 @@ library
112
116
hs-source-dirs : src
113
117
114
118
test-suite hw-prim-test
115
- import : base
116
- , common
119
+ import : base, config
117
120
, QuickCheck
118
121
, bytestring
119
122
, directory
120
123
, exceptions
121
124
, hedgehog
122
125
, hspec
123
126
, hw-hspec-hedgehog
127
+ , hw-prim
124
128
, mmap
125
129
, semigroups
126
130
, transformers
@@ -139,16 +143,15 @@ test-suite hw-prim-test
139
143
HaskellWorks.Data.Vector.StorableSpec
140
144
Paths_hw_prim
141
145
autogen-modules : Paths_hw_prim
142
- build-depends : hw-prim
143
146
hs-source-dirs : test
144
147
ghc-options : -threaded -rtsopts -with-rtsopts=-N
145
148
build-tool-depends : hspec-discover :hspec-discover
146
149
147
150
benchmark bench
148
- import : base
149
- , common
151
+ import : base, config
150
152
, bytestring
151
153
, criterion
154
+ , hw-prim
152
155
, mmap
153
156
, semigroups
154
157
, transformers
@@ -159,3 +162,15 @@ benchmark bench
159
162
hs-source-dirs : bench
160
163
build-depends : hw-prim
161
164
autogen-modules : Paths_hw_prim
165
+
166
+ test-suite doctest
167
+ import : base, config
168
+ , doctest
169
+ , doctest-discover
170
+ , hw-prim
171
+ default-language : Haskell2010
172
+ type : exitcode-stdio-1.0
173
+ ghc-options : -threaded
174
+ main-is : DoctestDriver.hs
175
+ HS-Source-Dirs : doctest
176
+ build-tool-depends : doctest-discover :doctest-discover
0 commit comments