-
Notifications
You must be signed in to change notification settings - Fork 72
/
doctest.cabal
304 lines (296 loc) · 8.47 KB
/
doctest.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack
name: doctest
version: 0.23.0
synopsis: Test interactive Haskell examples
description: `doctest` is a tool that checks [examples](https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810775744)
and [properties](https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810771856)
in Haddock comments.
It is similar in spirit to the [popular Python module with the same name](https://docs.python.org/3/library/doctest.html).
.
Documentation is at <https://github.com/sol/doctest#readme>.
category: Testing
bug-reports: https://github.com/sol/doctest/issues
homepage: https://github.com/sol/doctest#readme
license: MIT
license-file: LICENSE
copyright: (c) 2009-2024 Simon Hengel
author: Simon Hengel <[email protected]>
maintainer: Simon Hengel <[email protected]>
build-type: Simple
extra-source-files:
example/example.cabal
example/src/Example.hs
example/test/doctests.hs
test/parse/multiple-examples/Foo.hs
test/parse/no-examples/Fib.hs
test/parse/non-exported/Fib.hs
test/parse/property/Fib.hs
test/parse/setup-empty/Foo.hs
test/parse/setup-only/Foo.hs
test/parse/simple/Fib.hs
test/extract/argument-list/Foo.hs
test/extract/comment-order/Foo.hs
test/extract/declaration/Foo.hs
test/extract/dos-line-endings/Foo.hs
test/extract/export-list/Foo.hs
test/extract/imported-module/Bar.hs
test/extract/imported-module/Baz.hs
test/extract/module-header/Foo.hs
test/extract/named-chunks/Foo.hs
test/extract/regression/Fixity.hs
test/extract/regression/ForeignImport.hs
test/extract/regression/ParallelListComp.hs
test/extract/regression/ParallelListCompClass.hs
test/extract/regression/RewriteRules.hs
test/extract/regression/RewriteRulesWithSigs.hs
test/extract/setup/Foo.hs
test/extract/th/Bar.hs
test/extract/th/Foo.hs
test/extract/type-class-args/Foo.hs
test/extract/type-class/Foo.hs
test/extract/type-families/Foo.hs
test/integration/bugfixImportHierarchical/ModuleA.hs
test/integration/bugfixImportHierarchical/ModuleB.hs
test/integration/bugfixMultipleModules/ModuleA.hs
test/integration/bugfixMultipleModules/ModuleB.hs
test/integration/bugfixOutputToStdErr/Fib.hs
test/integration/bugfixWorkingDirectory/description
test/integration/bugfixWorkingDirectory/examples/Fib.hs
test/integration/bugfixWorkingDirectory/Fib.hs
test/integration/color/Foo.hs
test/integration/custom-package-conf/Bar.hs
test/integration/custom-package-conf/foo/doctest-foo.cabal
test/integration/custom-package-conf/foo/Foo.hs
test/integration/dos-line-endings/Fib.hs
test/integration/fail-fast/Bar.hs
test/integration/fail-fast/Foo.hs
test/integration/fail-fast/SetupBar.hs
test/integration/fail-fast/SetupFoo.hs
test/integration/failing-multiple/Foo.hs
test/integration/failing/Foo.hs
test/integration/it/Foo.hs
test/integration/it/Setup.hs
test/integration/local-stderr-binding/A.hs
test/integration/multiline/Multiline.hs
test/integration/parse-error/Foo.hs
test/integration/property-bool-with-type-signature/Foo.hs
test/integration/property-bool/Foo.hs
test/integration/property-failing/Foo.hs
test/integration/property-implicitly-quantified/Foo.hs
test/integration/property-quantified/Foo.hs
test/integration/property-setup/Foo.hs
test/integration/setup-skip-on-failure/Foo.hs
test/integration/setup/Foo.hs
test/integration/system-io-imported/A.hs
test/integration/template-haskell-bugfix/Main.hs
test/integration/template-haskell-bugfix/Printf.hs
test/integration/template-haskell/Foo.hs
test/integration/test-options/Foo.hs
test/integration/testBlankline/Fib.hs
test/integration/testCombinedExample/Fib.hs
test/integration/testCommentLocation/Foo.hs
test/integration/testCPP/Foo.hs
test/integration/testDocumentationForArguments/Fib.hs
test/integration/testFailOnMultiline/Fib.hs
test/integration/testImport/ModuleA.hs
test/integration/testImport/ModuleB.hs
test/integration/testPutStr/Fib.hs
test/integration/testSimple/Fib.hs
test/integration/trailing-whitespace/Foo.hs
test/integration/with-cbits/Bar.hs
test/integration/with-cbits/foo.c
CHANGES.markdown
README.md
source-repository head
type: git
location: https://github.com/sol/doctest
flag cabal-doctest
description: Install (experimental) cabal-doctest executable
manual: True
default: False
library
ghc-options: -Wall
hs-source-dirs:
src
default-extensions:
NamedFieldPuns
RecordWildCards
DeriveFunctor
NoImplicitPrelude
exposed-modules:
Test.DocTest
Test.DocTest.Internal.Extract
Test.DocTest.Internal.Location
Test.DocTest.Internal.Parse
Test.DocTest.Internal.Run
Test.DocTest.Internal.Cabal
other-modules:
Cabal
Cabal.Options
Cabal.Paths
Cabal.ReplOptions
Extract
GhcUtil
Imports
Info
Interpreter
Language.Haskell.GhciWrapper
Location
Options
PackageDBs
Parse
Property
Run
Runner
Runner.Example
Util
Paths_doctest
build-depends:
base >=4.7 && <5
, code-page >=0.1
, containers
, deepseq
, directory
, exceptions
, filepath
, ghc >=8.0 && <9.12
, ghc-paths >=0.1.0.9
, process
, syb >=0.3
, temporary
, transformers
default-language: Haskell2010
if impl(ghc >= 9.0)
ghc-options: -fwarn-unused-packages
if impl(ghc >= 9.8)
ghc-options: -fno-warn-x-partial
executable cabal-doctest
main-is: driver/cabal-doctest.hs
other-modules:
Paths_doctest
default-extensions:
NamedFieldPuns
RecordWildCards
DeriveFunctor
NoImplicitPrelude
ghc-options: -Wall -threaded
build-depends:
base >=4.7 && <5
, doctest
default-language: Haskell2010
if impl(ghc >= 9.0)
ghc-options: -fwarn-unused-packages
if impl(ghc >= 9.8)
ghc-options: -fno-warn-x-partial
if flag(cabal-doctest)
buildable: True
else
buildable: False
executable doctest
main-is: driver/doctest.hs
other-modules:
Paths_doctest
ghc-options: -Wall -threaded
default-extensions:
NamedFieldPuns
RecordWildCards
DeriveFunctor
NoImplicitPrelude
build-depends:
base >=4.7 && <5
, doctest
default-language: Haskell2010
if impl(ghc >= 9.0)
ghc-options: -fwarn-unused-packages
if impl(ghc >= 9.8)
ghc-options: -fno-warn-x-partial
test-suite spec
main-is: Spec.hs
other-modules:
Cabal.OptionsSpec
Cabal.PathsSpec
Cabal.ReplOptionsSpec
ExtractSpec
InfoSpec
InterpreterSpec
Language.Haskell.GhciWrapperSpec
LocationSpec
MainSpec
OptionsSpec
PackageDBsSpec
ParseSpec
PropertySpec
Runner.ExampleSpec
RunnerSpec
RunSpec
UtilSpec
Cabal
Cabal.Options
Cabal.Paths
Cabal.ReplOptions
Extract
GhcUtil
Imports
Info
Interpreter
Language.Haskell.GhciWrapper
Location
Options
PackageDBs
Parse
Property
Run
Runner
Runner.Example
Test.DocTest
Test.DocTest.Internal.Cabal
Test.DocTest.Internal.Extract
Test.DocTest.Internal.Location
Test.DocTest.Internal.Parse
Test.DocTest.Internal.Run
Util
Paths_doctest
type: exitcode-stdio-1.0
ghc-options: -Wall -threaded
cpp-options: -DTEST
hs-source-dirs:
test
src
default-extensions:
NamedFieldPuns
RecordWildCards
DeriveFunctor
NoImplicitPrelude
c-sources:
test/integration/with-cbits/foo.c
build-tool-depends:
hspec-discover:hspec-discover
build-depends:
HUnit
, QuickCheck >=2.13.1
, base >=4.7 && <5
, code-page >=0.1
, containers
, deepseq
, directory
, exceptions
, filepath
, ghc >=8.0 && <9.12
, ghc-paths >=0.1.0.9
, hspec >=2.3.0
, hspec-core >=2.3.0
, mockery
, process
, silently >=1.2.4
, stringbuilder >=0.4
, syb >=0.3
, temporary
, transformers
default-language: Haskell2010
if impl(ghc >= 9.0)
ghc-options: -fwarn-unused-packages
if impl(ghc >= 9.8)
ghc-options: -fno-warn-x-partial