gnu: calibre: Wrap QTWEBENGINEPROCESS_PATH.
[jackhill/guix/guix.git] / gnu / packages / haskell-check.scm
CommitLineData
a06b9b50
RW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
3;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
4;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
7291ad1e 5;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
3c986a7d 6;;; Copyright © 2016 Nikita <nikita@n0.is>
a06b9b50
RW
7;;; Copyright © 2016 David Craven <david@craven.ch>
8;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
9;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
03de2634 10;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
44cea578 11;;; Copyright © 2018 Tonton <tonton@riseup.net>
cdccdec1 12;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
d8e4b750 13;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
29e15533 14;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
a06b9b50
RW
15;;;
16;;; This file is part of GNU Guix.
17;;;
18;;; GNU Guix is free software; you can redistribute it and/or modify it
19;;; under the terms of the GNU General Public License as published by
20;;; the Free Software Foundation; either version 3 of the License, or (at
21;;; your option) any later version.
22;;;
23;;; GNU Guix is distributed in the hope that it will be useful, but
24;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26;;; GNU General Public License for more details.
27;;;
28;;; You should have received a copy of the GNU General Public License
29;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30
31(define-module (gnu packages haskell-check)
32 #:use-module (gnu packages)
47a6582b 33 #:use-module (gnu packages haskell-crypto)
dddbc90c 34 #:use-module (gnu packages haskell-xyz)
a06b9b50
RW
35 #:use-module (guix build-system haskell)
36 #:use-module (guix download)
37 #:use-module ((guix licenses) #:prefix license:)
38 #:use-module (guix packages)
39 #:use-module (guix utils))
40
41(define-public ghc-tasty-ant-xml
42 (package
43 (name "ghc-tasty-ant-xml")
c69f98ba 44 (version "1.1.6")
a06b9b50
RW
45 (source
46 (origin
47 (method url-fetch)
48 (uri (string-append
49 "https://hackage.haskell.org/package/tasty-ant-xml/tasty-ant-xml-"
50 version
51 ".tar.gz"))
52 (sha256
53 (base32
c69f98ba 54 "13qqpl1prr9dda87dp45mqybay24n8rhxxgvpc9j34kh72g8j5qw"))))
a06b9b50
RW
55 (build-system haskell-build-system)
56 (inputs
57 `(("ghc-generic-deriving" ,ghc-generic-deriving)
58 ("ghc-xml" ,ghc-xml)
a06b9b50
RW
59 ("ghc-tagged" ,ghc-tagged)
60 ("ghc-tasty" ,ghc-tasty)))
61 (home-page
62 "https://github.com/ocharles/tasty-ant-xml")
63 (synopsis
64 "Render tasty output to XML for Jenkins")
65 (description
66 "A tasty ingredient to output test results in XML, using the Ant
67schema. This XML can be consumed by the Jenkins continuous integration
68framework.")
69 (license license:bsd-3)))
70
71(define-public ghc-tasty-smallcheck
72 (package
73 (name "ghc-tasty-smallcheck")
f3ec9866 74 (version "0.8.1")
a06b9b50
RW
75 (source
76 (origin
77 (method url-fetch)
78 (uri (string-append
79 "https://hackage.haskell.org/package/tasty-smallcheck/tasty-smallcheck-"
80 version
81 ".tar.gz"))
82 (sha256
83 (base32
f3ec9866 84 "1n66ngzllf3xrlqykwszlkwsi96n5nkm7xbpfq7774vpvfnafjri"))))
a06b9b50
RW
85 (build-system haskell-build-system)
86 (inputs
87 `(("ghc-tasty" ,ghc-tasty)
88 ("ghc-smallcheck" ,ghc-smallcheck)
89 ("ghc-async" ,ghc-async)
90 ("ghc-tagged" ,ghc-tagged)))
1fd90622 91 (home-page "https://documentup.com/feuerbach/tasty")
a06b9b50
RW
92 (synopsis "SmallCheck support for the Tasty test framework")
93 (description "This package provides SmallCheck support for the Tasty
94Haskell test framework.")
95 (license license:bsd-3)))
96
97(define-public ghc-tasty-quickcheck
98 (package
99 (name "ghc-tasty-quickcheck")
b542650c 100 (version "0.10.1")
a06b9b50
RW
101 (source
102 (origin
103 (method url-fetch)
104 (uri (string-append
105 "https://hackage.haskell.org/package/tasty-quickcheck/"
106 "tasty-quickcheck-" version ".tar.gz"))
107 (sha256
108 (base32
b542650c 109 "0k4vvd5vmrncv1s6gdf03l4xijwlk428sb9jfx8n1zaz02971msh"))))
a06b9b50
RW
110 (build-system haskell-build-system)
111 (inputs
112 `(("ghc-quickcheck" ,ghc-quickcheck)
113 ("ghc-tagged" ,ghc-tagged)
114 ("ghc-tasty" ,ghc-tasty)
115 ("ghc-random" ,ghc-random)
116 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
117 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
118 ("ghc-pcre-light" ,ghc-pcre-light)))
119 (home-page "http://documentup.com/feuerbach/tasty")
120 (synopsis "QuickCheck support for the Tasty test framework")
121 (description "This package provides QuickCheck support for the Tasty
122Haskell test framework.")
123 (license license:expat)))
124
125(define-public ghc-tasty-golden
126 (package
127 (name "ghc-tasty-golden")
576b7dd5 128 (version "2.3.2")
a06b9b50
RW
129 (source
130 (origin
131 (method url-fetch)
132 (uri (string-append
133 "https://hackage.haskell.org/package/tasty-golden/tasty-golden-"
134 version
135 ".tar.gz"))
136 (sha256
137 (base32
576b7dd5 138 "0k3ibjhjc9vcwzrjnl4rnwvfm8l81q347nb7dgvcib6n5wm3s404"))))
a06b9b50
RW
139 (build-system haskell-build-system)
140 (inputs
141 `(("ghc-temporary" ,ghc-temporary)
142 ("ghc-tasty" ,ghc-tasty)
a06b9b50
RW
143 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
144 ("ghc-tagged" ,ghc-tagged)
145 ("ghc-async" ,ghc-async)
146 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
147 ("ghc-temporary-rc" ,ghc-temporary-rc)))
148 (home-page
149 "https://github.com/feuerbach/tasty-golden")
150 (synopsis "Golden tests support for tasty")
151 (description
36a4366d
EF
152 "This package provides support for @code{golden testing}. A @dfn{golden
153test} is an IO action that writes its result to a file. To pass the test, this
154output file should be identical to the corresponding @code{golden} file, which
49b9c800 155contains the correct result for the test.")
a06b9b50
RW
156 (license license:expat)))
157
a06b9b50
RW
158(define-public ghc-tasty
159 (package
160 (name "ghc-tasty")
28049c2a 161 (version "1.2.3")
a06b9b50
RW
162 (source
163 (origin
164 (method url-fetch)
165 (uri (string-append
166 "https://hackage.haskell.org/package/tasty/tasty-"
167 version
168 ".tar.gz"))
169 (sha256
170 (base32
28049c2a 171 "0qpn0avpw4w1qq5r2gwh2piipj0llqq6ylagr3xnqiraq6mhg8cc"))))
a06b9b50
RW
172 (build-system haskell-build-system)
173 (inputs
a1eb8be8 174 `(("ghc-tagged" ,ghc-tagged)
669692eb 175 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
a06b9b50
RW
176 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
177 ("ghc-unbounded-delays" ,ghc-unbounded-delays)
178 ("ghc-async" ,ghc-async)
179 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
9d1944a4
TS
180 ("ghc-clock-bootstrap" ,ghc-clock-bootstrap)
181 ("ghc-wcwidth" ,ghc-wcwidth-bootstrap)))
a06b9b50
RW
182 (home-page "http://documentup.com/feuerbach/tasty")
183 (synopsis "Modern and extensible testing framework")
184 (description "Tasty is a modern testing framework for Haskell. It lets
185you combine your unit tests, golden tests, QuickCheck/SmallCheck properties,
186and any other types of tests into a single test suite.")
187 (license license:expat)))
188
5e2d41f4
TS
189(define-public ghc-tasty-hedgehog
190 (package
191 (name "ghc-tasty-hedgehog")
192 (version "1.0.0.1")
193 (source
194 (origin
195 (method url-fetch)
196 (uri (string-append "https://hackage.haskell.org/package/"
197 "tasty-hedgehog/tasty-hedgehog-" version ".tar.gz"))
198 (sha256
199 (base32
200 "1mbg5q0c0xfrk4npfj60pi693igb7r5l78x6xf9fk2jglw0nmxhz"))))
201 (build-system haskell-build-system)
202 (inputs
203 `(("ghc-tagged" ,ghc-tagged)
204 ("ghc-tasty" ,ghc-tasty)
205 ("ghc-hedgehog" ,ghc-hedgehog)))
206 (native-inputs
207 `(("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)))
208 (arguments
209 `(#:cabal-revision
210 ("1" "1n6797fm8swyrk8cw7zxz593gq82wx8dayvm204rmgcz75bslcpn")))
211 (home-page "https://github.com/qfpl/tasty-hedgehog")
212 (synopsis "Integration for tasty and hedgehog")
213 (description "This package provides the means for integrating the
214@url{https://hackage.haskell.org/package/hedgehog, hedgehog testing library}
215with the @url{https://hackage.haskell.org/package/tasty, tasty testing
216framework}.")
217 (license license:bsd-3)))
218
13f7e5a1
JS
219(define-public ghc-tasty-hspec
220 (package
221 (name "ghc-tasty-hspec")
222 (version "1.1.5.1")
223 (source
224 (origin
225 (method url-fetch)
226 (uri (string-append
227 "mirror://hackage/package/tasty-hspec/tasty-hspec-"
228 version
229 ".tar.gz"))
230 (sha256
231 (base32
232 "0i9kdzjpk750sa078jj3iyhp72k0177zk7vxl131r6dkyz09x27y"))))
233 (build-system haskell-build-system)
234 (inputs
235 `(("ghc-hspec" ,ghc-hspec)
236 ("ghc-hspec-core" ,ghc-hspec-core)
237 ("ghc-quickcheck" ,ghc-quickcheck)
238 ("ghc-tasty" ,ghc-tasty)
239 ("ghc-tasty-smallcheck" ,ghc-tasty-smallcheck)
240 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
241 (arguments
242 `(#:cabal-revision
243 ("4" "1yppwhs2r2rlwrzli9ccv5ldgl95h5p7pqhsr898r3das6daf6sk")))
244 (home-page
245 "https://github.com/mitchellwrosen/tasty-hspec")
246 (synopsis
247 "Hspec support for the Tasty test framework")
248 (description
249 "This package provides a Tasty provider for Hspec test suites.")
250 (license license:bsd-3)))
251
a06b9b50
RW
252(define-public ghc-tasty-hunit
253 (package
254 (name "ghc-tasty-hunit")
92db1a88 255 (version "0.10.0.2")
a06b9b50
RW
256 (source
257 (origin
258 (method url-fetch)
259 (uri (string-append
260 "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-"
261 version
262 ".tar.gz"))
263 (sha256
264 (base32
92db1a88 265 "1xvf5xs0r8xqkcg354klz4wyzwyzvinalyl6f4fnxwqmzrgch8s8"))))
a06b9b50
RW
266 (build-system haskell-build-system)
267 (inputs
58182daa
TS
268 `(("ghc-call-stack" ,ghc-call-stack-boot)
269 ("ghc-tasty" ,ghc-tasty)))
a06b9b50
RW
270 (home-page "http://documentup.com/feuerbach/tasty")
271 (synopsis "HUnit support for the Tasty test framework")
272 (description "This package provides HUnit support for the Tasty Haskell
273test framework.")
274 (license license:expat)))
275
276(define-public ghc-tasty-kat
277 (package
278 (name "ghc-tasty-kat")
279 (version "0.0.3")
280 (source (origin
281 (method url-fetch)
282 (uri (string-append "https://hackage.haskell.org/package/"
283 "tasty-kat/tasty-kat-" version ".tar.gz"))
284 (sha256
285 (base32
286 "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7"))))
287 (build-system haskell-build-system)
288 (inputs
289 `(("ghc-tasty" ,ghc-tasty)
a06b9b50
RW
290 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
291 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
292 (home-page "https://github.com/vincenthz/tasty-kat")
293 (synopsis "Known Answer Tests (KAT) framework for tasty")
294 (description
295 "This package provides a @dfn{Known Answer Tests} (KAT) framework for
296tasty.")
297 (license license:expat)))
298
b37d0c82
TS
299(define-public ghc-tasty-lua
300 (package
301 (name "ghc-tasty-lua")
302 (version "0.2.0.1")
303 (source
304 (origin
305 (method url-fetch)
306 (uri (string-append "https://hackage.haskell.org/package/"
307 "tasty-lua/tasty-lua-" version ".tar.gz"))
308 (sha256
309 (base32
310 "0xlj36rrhkx312h7smx6ay20rhlhxvw2ma2ckdnzv1pvmdn6p5qx"))))
311 (build-system haskell-build-system)
312 (inputs
313 `(("ghc-file-embed" ,ghc-file-embed)
314 ("ghc-hslua" ,ghc-hslua)
315 ("ghc-tasty" ,ghc-tasty)))
316 (native-inputs
317 `(("ghc-tasty-hunit" ,ghc-tasty-hunit)))
318 (home-page "https://github.com/hslua/tasty-lua")
319 (synopsis "Write tests in Lua, integrate into tasty")
320 (description "This package gives users the ability to define tasty tests
321from Lua.")
322 (license license:expat)))
323
a06b9b50
RW
324(define-public ghc-tasty-th
325 (package
326 (name "ghc-tasty-th")
310d782e 327 (version "0.1.7")
a06b9b50
RW
328 (source
329 (origin
330 (method url-fetch)
331 (uri (string-append
332 "https://hackage.haskell.org/package/tasty-th/tasty-th-"
333 version ".tar.gz"))
334 (sha256
335 (base32
310d782e 336 "0b2ivrw2257m4cy4rjnkwqlarh83j1y3zywnmaqqqbvy667sqnj3"))))
a06b9b50
RW
337 (build-system haskell-build-system)
338 (inputs
310d782e
TS
339 `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
340 ("ghc-tasty" ,ghc-tasty)
341 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
a06b9b50
RW
342 (home-page "https://github.com/bennofs/tasty-th")
343 (synopsis "Automatically generate tasty TestTrees")
344 (description
345 "Tasty-th automatically generates tasty TestTrees from functions of the
346current module, using TemplateHaskell. This is a fork the original
347test-framework-th package, modified to work with tasty instead of
348test-framework.")
349 (license license:bsd-3)))
350
351(define-public ghc-tasty-rerun
352 (package
353 (name "ghc-tasty-rerun")
7c4ac0ad 354 (version "1.1.14")
a06b9b50
RW
355 (source (origin
356 (method url-fetch)
357 (uri (string-append
358 "https://hackage.haskell.org/package/tasty-rerun/"
359 "tasty-rerun-" version ".tar.gz"))
360 (sha256
361 (base32
7c4ac0ad 362 "0s0zj8ds4g1w2cjzm2lh25ivg962jigqdrbj08v3dbz64lx4mlzr"))))
a06b9b50
RW
363 (build-system haskell-build-system)
364 (inputs
f54f0475 365 `(("ghc-optparse-applicative" ,ghc-optparse-applicative)
a06b9b50
RW
366 ("ghc-reducers" ,ghc-reducers)
367 ("ghc-split" ,ghc-split)
a06b9b50
RW
368 ("ghc-tagged" ,ghc-tagged)
369 ("ghc-tasty" ,ghc-tasty)))
370 (home-page "https://github.com/ocharles/tasty-rerun")
371 (synopsis "Run tests by filtering the test tree")
372 (description "This package adds the ability to run tests by filtering the
373test tree based on the result of a previous test run. You can use this to run
374only those tests that failed in the last run, or to only run the tests that have
375been added since previous test run.")
376 (license license:bsd-3)))
377
ee448389
RW
378(define-public ghc-tasty-expected-failure
379 (package
380 (name "ghc-tasty-expected-failure")
13e9d13c 381 (version "0.11.1.2")
ee448389
RW
382 (source
383 (origin
384 (method url-fetch)
385 (uri (string-append "https://hackage.haskell.org/package/"
386 "tasty-expected-failure/tasty-expected-failure-"
387 version ".tar.gz"))
388 (sha256
389 (base32
13e9d13c 390 "175gdk1mkslcwjxajkbl4zmaigzf8h4svzd7va5qb519y0dxk28n"))))
ee448389
RW
391 (build-system haskell-build-system)
392 (inputs
393 `(("ghc-tagged" ,ghc-tagged)
394 ("ghc-tasty" ,ghc-tasty)))
702a1012 395 (home-page "https://github.com/nomeata/tasty-expected-failure")
ee448389
RW
396 (synopsis "Mark tasty tests as failure expected")
397 (description
398 "With the function @code{Test.Tasty.ExpectedFailure.expectFail} in the
399provided module @code{Test.Tasty.ExpectedFailure}, you can mark that you
400expect test cases to fail, and not to pass. This can be used for test-driven
401development.")
402 (license license:expat)))
403
a06b9b50
RW
404(define-public ghc-quickcheck-instances
405 (package
406 (name "ghc-quickcheck-instances")
e9f64fa0 407 (version "0.3.22")
a06b9b50
RW
408 (source
409 (origin
410 (method url-fetch)
411 (uri (string-append
412 "https://hackage.haskell.org/package/"
413 "quickcheck-instances/quickcheck-instances-"
414 version ".tar.gz"))
415 (sha256
416 (base32
e9f64fa0 417 "14asr9r7da3w7p4hjj51w2yb002nz8x0np8hdz9z4yjvi60vyrax"))))
a06b9b50 418 (build-system haskell-build-system)
cdccdec1 419 (arguments
fc042487 420 `(#:cabal-revision
e9f64fa0 421 ("2" "1ia5fjhpg7rz793552v88gv2iqx7hl9mi2g09m0llasy1cpzc9jr")))
a06b9b50 422 (inputs
04a69991
RW
423 `(("ghc-quickcheck" ,ghc-quickcheck)
424 ("ghc-base-compat" ,ghc-base-compat)
425 ("ghc-case-insensitive" ,ghc-case-insensitive)
a06b9b50 426 ("ghc-hashable" ,ghc-hashable)
04a69991 427 ("ghc-old-time" ,ghc-old-time)
a06b9b50 428 ("ghc-scientific" ,ghc-scientific)
04a69991 429 ("ghc-tagged" ,ghc-tagged)
e9f64fa0 430 ("ghc-time-compat" ,ghc-time-compat)
04a69991
RW
431 ("ghc-transformers-compat" ,ghc-transformers-compat)
432 ("ghc-unordered-containers" ,ghc-unordered-containers)
433 ("ghc-uuid-types" ,ghc-uuid-types)
434 ("ghc-vector" ,ghc-vector)))
435 (home-page "https://github.com/aslatter/qc-instances")
a06b9b50
RW
436 (synopsis "Common quickcheck instances")
437 (description "This package provides QuickCheck instances for types
438provided by the Haskell Platform.")
439 (license license:bsd-3)))
440
441(define-public ghc-quickcheck-unicode
442 (package
443 (name "ghc-quickcheck-unicode")
03de2634 444 (version "1.0.1.0")
a06b9b50
RW
445 (source
446 (origin
447 (method url-fetch)
448 (uri (string-append
03de2634
TGR
449 "https://hackage.haskell.org/package/quickcheck-unicode/"
450 "quickcheck-unicode-" version ".tar.gz"))
a06b9b50
RW
451 (sha256
452 (base32
03de2634 453 "0s43s1bzbg3gwsjgm7fpyksd1339f0m26dlw2famxwyzgvm0a80k"))))
a06b9b50
RW
454 (build-system haskell-build-system)
455 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
456 (home-page
457 "https://github.com/bos/quickcheck-unicode")
458 (synopsis "Generator functions Unicode-related tests")
459 (description "This package provides generator and shrink functions for
460testing Unicode-related software.")
461 (license license:bsd-3)))
462
463(define-public ghc-quickcheck-io
464 (package
465 (name "ghc-quickcheck-io")
bb0e9ca4 466 (version "0.2.0")
a06b9b50
RW
467 (source
468 (origin
469 (method url-fetch)
470 (uri (string-append
471 "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-"
472 version
473 ".tar.gz"))
474 (sha256
475 (base32
bb0e9ca4 476 "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv"))))
a06b9b50
RW
477 (build-system haskell-build-system)
478 (inputs
479 `(("ghc-quickcheck" ,ghc-quickcheck)
480 ("ghc-hunit" ,ghc-hunit)))
481 (home-page
482 "https://github.com/hspec/quickcheck-io#readme")
483 (synopsis "Use HUnit assertions as QuickCheck properties")
484 (description "This package provides an orphan instance that allows you to
485use HUnit assertions as QuickCheck properties.")
486 (license license:expat)))
487
488(define-public ghc-quickcheck
489 (package
490 (name "ghc-quickcheck")
178f69cb 491 (version "2.13.2")
534d6caa 492 (outputs '("out" "static" "doc"))
a06b9b50
RW
493 (source
494 (origin
495 (method url-fetch)
496 (uri (string-append
497 "https://hackage.haskell.org/package/QuickCheck/QuickCheck-"
498 version
499 ".tar.gz"))
500 (sha256
501 (base32
178f69cb 502 "0426j43af8v3qmdjjqxivazsvr3a2brac8yw09vpgpjkb2m0nmkv"))))
a06b9b50
RW
503 (build-system haskell-build-system)
504 (arguments
09b52698 505 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
a06b9b50 506 (inputs
7291ad1e 507 `(("ghc-random" ,ghc-random)
178f69cb 508 ("ghc-splitmix" ,ghc-splitmix-bootstrap)
7291ad1e
RW
509 ("ghc-tf-random" ,ghc-tf-random)))
510 (home-page "https://github.com/nick8325/quickcheck")
511 (synopsis "Automatic testing of Haskell programs")
a06b9b50 512 (description
7291ad1e
RW
513 "QuickCheck is a library for random testing of program properties. The
514programmer provides a specification of the program, in the form of properties
515which functions should satisfy, and QuickCheck then tests that the properties
516hold in a large number of randomly generated cases. Specifications are
517expressed in Haskell, using combinators defined in the QuickCheck library.")
a06b9b50
RW
518 (license license:bsd-3)))
519
520(define-public ghc-test-framework
521 (package
522 (name "ghc-test-framework")
bc8bda50 523 (version "0.8.2.0")
a06b9b50
RW
524 (source
525 (origin
526 (method url-fetch)
527 (uri (string-append "https://hackage.haskell.org/package/test-framework/"
528 "test-framework-" version ".tar.gz"))
529 (sha256
530 (base32
bc8bda50 531 "1hhacrzam6b8f10hyldmjw8pb7frdxh04rfg3farxcxwbnhwgbpm"))))
a06b9b50 532 (build-system haskell-build-system)
7fa02bc7 533 (arguments
bc8bda50 534 `(#:tests? #f ; FIXME: Tests do not build.
d418ec06
TS
535 #:cabal-revision
536 ("5" "18g92ajx3ghznd6k3ihj22ln29n676ailzwx3k0f1kj3bmpilnh6")))
a06b9b50
RW
537 (native-inputs
538 `(("ghc-hunit" ,ghc-hunit)
539 ("ghc-quickcheck" ,ghc-quickcheck)))
540 (inputs
541 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
542 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
543 ("ghc-hostname" ,ghc-hostname)
544 ("ghc-old-locale" ,ghc-old-locale)
545 ("ghc-random" ,ghc-random)
546 ("ghc-regex-posix" ,ghc-regex-posix)
547 ("ghc-xml" ,ghc-xml)
bc8bda50
TS
548 ("ghc-libxml" ,ghc-libxml)
549 ("ghc-semigroups" ,ghc-semigroups-bootstrap)))
a06b9b50
RW
550 (home-page "https://batterseapower.github.io/test-framework/")
551 (synopsis "Framework for running and organising tests")
552 (description
553 "This package allows tests such as QuickCheck properties and HUnit test
554cases to be assembled into test groups, run in parallel (but reported in
555deterministic order, to aid diff interpretation) and filtered and controlled
556by command line options. All of this comes with colored test output, progress
557reporting and test statistics output.")
558 (license license:bsd-3)))
559
560(define-public ghc-test-framework-hunit
561 (package
562 (name "ghc-test-framework-hunit")
08bb5bbb 563 (version "0.3.0.2")
a06b9b50
RW
564 (source
565 (origin
566 (method url-fetch)
567 (uri (string-append "https://hackage.haskell.org/package/"
568 "test-framework-hunit/test-framework-hunit-"
569 version ".tar.gz"))
570 (sha256
571 (base32
08bb5bbb 572 "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm"))))
a06b9b50 573 (build-system haskell-build-system)
a5f7a5f6 574 (arguments
aeb1c6ab
TS
575 `(#:cabal-revision
576 ("3" "0i9mlalv7cl1iq43ld5myrnpszq5rxmd79hk495dcb08rglhgl3z")))
a06b9b50
RW
577 (inputs
578 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
579 ("ghc-hunit" ,ghc-hunit)
580 ("ghc-test-framework" ,ghc-test-framework)))
581 (home-page "https://batterseapower.github.io/test-framework/")
582 (synopsis "HUnit support for test-framework")
583 (description
584 "This package provides HUnit support for the test-framework package.")
585 (license license:bsd-3)))
586
587(define-public ghc-test-framework-quickcheck2
588 (package
589 (name "ghc-test-framework-quickcheck2")
fee444f5 590 (version "0.3.0.5")
a06b9b50
RW
591 (source
592 (origin
593 (method url-fetch)
594 (uri (string-append "https://hackage.haskell.org/package/"
595 "test-framework-quickcheck2/"
596 "test-framework-quickcheck2-" version ".tar.gz"))
597 (sha256
598 (base32
fee444f5 599 "0ngf9vvby4nrdf1i7dxf5m9jn0g2pkq32w48xdr92n9hxka7ixn9"))))
a06b9b50 600 (build-system haskell-build-system)
c2d2f275
TS
601 (arguments
602 `(#:cabal-revision
fee444f5 603 ("1" "1vmpk70h1594h9s216d3ngkb399fpny1d3sh4gg0vrc75p4as68d")))
a06b9b50
RW
604 (inputs
605 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
606 ("ghc-quickcheck" ,ghc-quickcheck)
607 ("ghc-random" ,ghc-random)
608 ("ghc-test-framework" ,ghc-test-framework)))
609 (home-page "https://batterseapower.github.io/test-framework/")
610 (synopsis "QuickCheck2 support for test-framework")
611 (description
3c7b6509 612 "This package provides QuickCheck2 support for the test-framework
a06b9b50
RW
613package.")
614 (license license:bsd-3)))
615
616(define-public ghc-test-framework-th
617 (package
618 (name "ghc-test-framework-th")
619 (version "0.2.4")
620 (source
621 (origin
622 (method url-fetch)
623 (uri (string-append "https://hackage.haskell.org/package/"
624 "test-framework-th-" version "/"
625 "test-framework-th-" version ".tar.gz"))
626 (sha256
627 (base32
628 "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b"))))
629 (build-system haskell-build-system)
630 (inputs
631 `(("ghc-test-framework" ,ghc-test-framework)
632 ("ghc-language-haskell-extract" ,ghc-language-haskell-extract)
633 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
634 ("ghc-regex-posix" ,ghc-regex-posix)))
635 (home-page "https://github.com/finnsson/test-generator")
636 (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code
637using Template Haskell")
638 (description "This library contains two functions:
639@code{defaultMainGenerator} and @code{testGroupGenerator}.
640
641@code{defaultMainGenerator} will extract all functions beginning with
642@code{case_}, @code{prop_}, or @code{test_} in the module and put them in a
643@code{testGroup}.
644
645@code{testGroupGenerator} is like @code{defaultMainGenerator} but without
646@code{defaultMain}. It is useful if you need a function for the testgroup
647\(e.g. if you want to be able to call the testgroup from another module).")
648 (license license:bsd-3)))
649
650(define-public ghc-hunit
651 (package
652 (name "ghc-hunit")
f1ac3bba 653 (version "1.6.0.0")
534d6caa 654 (outputs '("out" "static" "doc"))
a06b9b50
RW
655 (source
656 (origin
657 (method url-fetch)
f1ac3bba
RW
658 (uri (string-append "https://hackage.haskell.org/package/HUnit/"
659 "HUnit-" version ".tar.gz"))
a06b9b50
RW
660 (sha256
661 (base32
f1ac3bba 662 "1pnhwqq5v8h48gbp3ibv3skfj25mf4zs5svxcavq93p9cswycj3l"))))
a06b9b50 663 (build-system haskell-build-system)
f1ac3bba
RW
664 (inputs
665 ;; We cannot use ghc-call-stack there, because it depends on
666 ;; ghc-nanospec, which depends on ghc-hunit.
667 `(("ghc-call-stack" ,ghc-call-stack-boot)))
a06b9b50
RW
668 (home-page "http://hunit.sourceforge.net/")
669 (synopsis "Unit testing framework for Haskell")
670 (description
671 "HUnit is a unit testing framework for Haskell, inspired by the
672JUnit tool for Java.")
673 (license license:bsd-3)))
674
675(define-public hspec-discover
676 (package
677 (name "hspec-discover")
a5a870d8 678 (version "2.7.1")
a06b9b50
RW
679 (source
680 (origin
681 (method url-fetch)
8d04a5c9
RW
682 (uri (string-append "https://hackage.haskell.org/package/"
683 "hspec-discover/hspec-discover-"
684 version ".tar.gz"))
a06b9b50
RW
685 (sha256
686 (base32
a5a870d8 687 "0r47fm94wa6qrhp8cc1zzkjrxc32rnagfn9m9ga4dm6p6ydw4c8b"))))
a06b9b50 688 (build-system haskell-build-system)
8d04a5c9
RW
689 (native-inputs
690 `(("ghc-quickcheck" ,ghc-quickcheck)
691 ("ghc-hspec-meta" ,ghc-hspec-meta)))
78724a5a 692 (home-page "https://hspec.github.io/")
a06b9b50
RW
693 (synopsis "Automatically discover and run Hspec tests")
694 (description "hspec-discover is a tool which automatically discovers and
695runs Hspec tests.")
696 (license license:expat)))
697
698(define-public ghc-hspec-core
699 (package
700 (name "ghc-hspec-core")
a777c69a 701 (version "2.7.1")
a06b9b50
RW
702 (source
703 (origin
704 (method url-fetch)
3b8e4774
RW
705 (uri (string-append "https://hackage.haskell.org/package/hspec-core/"
706 "hspec-core-" version ".tar.gz"))
a06b9b50
RW
707 (sha256
708 (base32
a777c69a 709 "08vk8588lap00hsln8zl64dazbb28lzk4b4h5vnm7xvhg7r21k1c"))))
a06b9b50
RW
710 (build-system haskell-build-system)
711 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
712 (inputs
713 `(("ghc-setenv" ,ghc-setenv)
714 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
3b8e4774 715 ("ghc-clock" ,ghc-clock)
a06b9b50
RW
716 ("ghc-quickcheck-io" ,ghc-quickcheck-io)
717 ("ghc-hunit" ,ghc-hunit)
718 ("ghc-quickcheck" ,ghc-quickcheck)
719 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
a777c69a
TS
720 ("ghc-silently" ,ghc-silently)
721 ("ghc-tf-random" ,ghc-tf-random)))
78724a5a 722 (home-page "https://hspec.github.io/")
a06b9b50
RW
723 (synopsis "Testing framework for Haskell")
724 (description "This library exposes internal types and functions that can
725be used to extend Hspec's functionality.")
726 (license license:expat)))
727
728(define-public ghc-hspec-meta
729 (package
730 (name "ghc-hspec-meta")
ad128630 731 (version "2.6.0")
a06b9b50
RW
732 (source
733 (origin
734 (method url-fetch)
31caca65
RW
735 (uri (string-append "https://hackage.haskell.org/package/hspec-meta/"
736 "hspec-meta-" version ".tar.gz"))
a06b9b50
RW
737 (sha256
738 (base32
ad128630 739 "1n1a4633wfivylglji8920f67mx7qz8j4q58n8p7dxk6yg4h3mz6"))))
a06b9b50
RW
740 (build-system haskell-build-system)
741 (inputs
742 `(("ghc-quickcheck" ,ghc-quickcheck)
743 ("ghc-hunit" ,ghc-hunit)
744 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
ad128630 745 ("ghc-clock" ,ghc-clock)
a06b9b50
RW
746 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
747 ("ghc-setenv" ,ghc-setenv)
748 ("ghc-random" ,ghc-random)
749 ("ghc-quickcheck-io" ,ghc-quickcheck-io)))
78724a5a 750 (home-page "https://hspec.github.io/")
a06b9b50
RW
751 (synopsis "Version of Hspec to test Hspec itself")
752 (description "This library provides a stable version of Hspec which is
753used to test the in-development version of Hspec.")
754 (license license:expat)))
755
756(define-public ghc-hspec
757 (package
758 (name "ghc-hspec")
abbe5a2a 759 (version "2.7.1")
a06b9b50
RW
760 (source
761 (origin
762 (method url-fetch)
c2c8d998
RW
763 (uri (string-append "https://hackage.haskell.org/package/hspec/"
764 "hspec-" version ".tar.gz"))
a06b9b50
RW
765 (sha256
766 (base32
abbe5a2a 767 "1x8rcr7j1azcaw0fg1xzp8j0gr4ias36z09aj24i4xp8pnyfp341"))))
a06b9b50 768 (build-system haskell-build-system)
d65a3025 769 (outputs '("out" "static" "doc"))
a06b9b50
RW
770 (inputs
771 `(("ghc-hspec-core" ,ghc-hspec-core)
772 ("hspec-discover" ,hspec-discover)
773 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
774 ("ghc-quickcheck" ,ghc-quickcheck)
775 ("ghc-hunit" ,ghc-hunit)
776 ("ghc-stringbuilder" ,ghc-stringbuilder)
777 ("ghc-hspec-meta" ,ghc-hspec-meta)))
78724a5a 778 (home-page "https://hspec.github.io/")
a06b9b50
RW
779 (synopsis "Testing Framework for Haskell")
780 (description "This library provides the Hspec testing framework for
781Haskell, inspired by the Ruby library RSpec.")
782 (license license:expat)))
783
784(define-public ghc-hspec-contrib
785 (package
786 (name "ghc-hspec-contrib")
bb148db8 787 (version "0.5.1")
a06b9b50
RW
788 (source (origin
789 (method url-fetch)
790 (uri (string-append "https://hackage.haskell.org/package/"
791 "hspec-contrib/hspec-contrib-"
792 version ".tar.gz"))
793 (sha256
794 (base32
bb148db8 795 "0hhzxaa3fxz5mk5qcsrnfr98a7bn3szx2ydgr0x9mbqmm1jg06rc"))))
a06b9b50
RW
796 (build-system haskell-build-system)
797 (inputs
798 `(("ghc-hspec-core" ,ghc-hspec-core)
799 ("ghc-hunit" ,ghc-hunit)
800 ("ghc-hspec" ,ghc-hspec)
801 ("ghc-quickcheck" ,ghc-quickcheck)))
802 (native-inputs
803 `(("hspec-discover" ,hspec-discover)))
78724a5a 804 (home-page "https://hspec.github.io/")
a06b9b50
RW
805 (synopsis "Contributed functionality for Hspec")
806 (description
807 "This package provides contributed Hspec extensions.")
808 (license license:expat)))
809
810(define-public ghc-hspec-expectations
811 (package
812 (name "ghc-hspec-expectations")
15fb81e5 813 (version "0.8.2")
a06b9b50
RW
814 (source
815 (origin
816 (method url-fetch)
15fb81e5
RW
817 (uri (string-append "https://hackage.haskell.org/package/"
818 "hspec-expectations/hspec-expectations-"
819 version ".tar.gz"))
a06b9b50
RW
820 (sha256
821 (base32
15fb81e5 822 "1vxl9zazbaapijr6zmcj72j9wf7ka1pirrjbwddwwddg3zm0g5l1"))))
a06b9b50 823 (build-system haskell-build-system)
15fb81e5
RW
824 ;; Tests depend on ghc-nanospec.
825 (arguments '(#:tests? #f))
a06b9b50
RW
826 (inputs `(("ghc-hunit" ,ghc-hunit)))
827 (home-page "https://github.com/sol/hspec-expectations")
828 (synopsis "Catchy combinators for HUnit")
829 (description "This library provides catchy combinators for HUnit, see
830@uref{https://github.com/sol/hspec-expectations#readme, the README}.")
831 (license license:expat)))
a54b7441
RW
832
833(define-public ghc-nanospec
834 (package
835 (name "ghc-nanospec")
836 (version "0.2.2")
837 (source
838 (origin
839 (method url-fetch)
840 (uri (string-append "https://hackage.haskell.org/package/"
841 "nanospec/nanospec-"
842 version ".tar.gz"))
843 (sha256
844 (base32
845 "1rcmhl9bhyfvanalnf1r86wkx6rq6wdvagnw1h011jcnnb1cq56g"))))
846 (build-system haskell-build-system)
847 (inputs
848 `(("ghc-hspec" ,ghc-hspec)
849 ("ghc-silently" ,ghc-silently)))
850 (home-page "https://github.com/hspec/nanospec#readme")
851 (synopsis "Lightweight implementation of a subset of Hspec's API")
852 (description
853 "Nanospec is a lightweight implementation of a subset of Hspec's API with
854minimal dependencies.")
855 (license license:expat)))
47a6582b 856
857(define-public ghc-crypto-cipher-tests
858 (package
859 (name "ghc-crypto-cipher-tests")
860 (version "0.0.11")
861 (source
862 (origin
863 (method url-fetch)
864 (uri (string-append "https://hackage.haskell.org/package/"
865 "crypto-cipher-tests-" version "/"
866 "crypto-cipher-tests-" version ".tar.gz"))
867 (sha256
868 (base32
869 "19wqignlq90qwpam01hnmmrxaxh5lkax9l1l6rlbi4a07nvp1dnz"))))
870 (build-system haskell-build-system)
871 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)
47a6582b 872 ("ghc-hunit" ,ghc-hunit)
873 ("ghc-test-framework" ,ghc-test-framework)
874 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
875 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
876 ("ghc-byteable" ,ghc-byteable)
877 ("ghc-securemem" ,ghc-securemem)
878 ("ghc-crypto-cipher-types" ,ghc-crypto-cipher-types)))
879 (home-page "https://github.com/vincenthz/hs-crypto-cipher")
880 (synopsis "Generic cryptography cipher tests for Haskell")
881 (description " This Haskell package contains generic tests for
882cryptographic ciphers, and is used by the test runners of various Haskell
883implementations of cryptographic ciphers.")
884 (license license:bsd-3)))
2c4e4bc6
JM
885
886(define-public ghc-hedgehog
887 (package
888 (name "ghc-hedgehog")
cb71ac3d 889 (version "1.0.1")
2c4e4bc6
JM
890 (source
891 (origin
892 (method url-fetch)
893 (uri (string-append
894 "mirror://hackage/package/hedgehog/hedgehog-"
895 version
896 ".tar.gz"))
897 (sha256
898 (base32
cb71ac3d 899 "1qc7hkqbnsk3f5r26wc35r3qiy941nmcxhfqgcq9027kw4gs0bi0"))))
2c4e4bc6
JM
900 (build-system haskell-build-system)
901 (inputs
91732735 902 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
2c4e4bc6
JM
903 ("ghc-async" ,ghc-async)
904 ("ghc-concurrent-output" ,ghc-concurrent-output)
905 ("ghc-exceptions" ,ghc-exceptions)
cb71ac3d 906 ("ghc-fail" ,ghc-fail)
2c4e4bc6
JM
907 ("ghc-lifted-async" ,ghc-lifted-async)
908 ("ghc-mmorph" ,ghc-mmorph)
909 ("ghc-monad-control" ,ghc-monad-control)
910 ("ghc-pretty-show" ,ghc-pretty-show)
911 ("ghc-primitive" ,ghc-primitive)
912 ("ghc-random" ,ghc-random)
913 ("ghc-resourcet" ,ghc-resourcet)
914 ("ghc-semigroups" ,ghc-semigroups)
2c4e4bc6
JM
915 ("ghc-th-lift" ,ghc-th-lift)
916 ("ghc-transformers-base" ,ghc-transformers-base)
917 ("ghc-wl-pprint-annotated"
918 ,ghc-wl-pprint-annotated)))
919 (home-page "https://hedgehog.qa")
920 (synopsis "Property-based testing in the spirt of QuickCheck")
921 (description
922 "Hedgehog is a property-based testing system, in the spirit of
923QuickCheck. Hedgehog uses integrated shrinking, so shrinks obey the invariants
924of generated values by construction.
925
926To get started quickly, see the examples:
927@uref{https://github.com/hedgehogqa/haskell-hedgehog/tree/master/hedgehog-example}")
928 (license license:bsd-3)))
1ba35ab7
RV
929
930(define-public cabal-doctest
931 (package
932 (name "cabal-doctest")
ff25ccf4 933 (version "1.0.8")
1ba35ab7
RV
934 (source
935 (origin
936 (method url-fetch)
937 (uri (string-append "https://hackage.haskell.org/package/"
938 "cabal-doctest/cabal-doctest-"
939 version ".tar.gz"))
940 (sha256
941 (base32
ff25ccf4 942 "03if74imlhhk7m56nci5f1wclniwqdmwl4hl177040j1gnlac9i0"))))
1ba35ab7 943 (build-system haskell-build-system)
1ba35ab7
RV
944 (home-page "https://github.com/phadej/cabal-doctest")
945 (synopsis "Setup.hs helper for running doctests")
946 (description
947 "To properly work, the @code{doctest} package needs plenty of
948configuration. This library provides the common bits for writing custom
949@file{Setup.hs} files.")
950 (license license:bsd-3)))
d8e4b750
TS
951
952(define-public ghc-testing-type-modifiers
953 (package
954 (name "ghc-testing-type-modifiers")
955 (version "0.1.0.1")
956 (source
957 (origin
958 (method url-fetch)
959 (uri (string-append "https://hackage.haskell.org/package/"
960 "testing-type-modifiers/testing-type-modifiers-"
961 version ".tar.gz"))
962 (sha256
963 (base32
964 "1wh2n95n39ivv6kbqn42vbzrj8zagsmk6f2al2qj40bg5kgdl2q5"))))
965 (build-system haskell-build-system)
966 (home-page "https://hackage.haskell.org/package/testing-type-modifiers")
967 (synopsis "Data type modifiers for property based testing")
968 (description "Property based testing libraries such as QuickCheck tend to
969include type modifiers. Most of them are used to quantify over subsets of a
970type. This library is intended to supply these modifiers to be used by
971testing libraries, in an effort to make properties more portable between
972testing frameworks.")
973 (license license:unlicense)))
f9cad2a0
TS
974
975(define-public ghc-testing-feat
976 (package
977 (name "ghc-testing-feat")
978 (version "1.1.0.0")
979 (source
980 (origin
981 (method url-fetch)
982 (uri (string-append "https://hackage.haskell.org/package/"
983 "testing-feat/testing-feat-" version ".tar.gz"))
984 (sha256
985 (base32
986 "1v2qzzpf1s008g7q6q67glf7vbm1pkpq4rc3ii74f4g6vhfx610r"))))
987 (build-system haskell-build-system)
988 (inputs
989 `(("ghc-quickcheck" ,ghc-quickcheck)
990 ("ghc-size-based" ,ghc-size-based)
991 ("ghc-testing-type-modifiers" ,ghc-testing-type-modifiers)
992 ("ghc-semigroups" ,ghc-semigroups)))
993 (home-page "https://github.com/JonasDuregard/testing-feat")
994 (synopsis "Functional Enumeration of Algebraic Types")
995 (description "Feat (Functional Enumeration of Algebraic Types)
996provides enumerations as functions from natural numbers to
997values (similar to @code{toEnum} but for any algebraic data type). This
998can be used for SmallCheck-style systematic testing, QuickCheck-style
999random testing, and hybrids of the two.")
1000 (license license:bsd-3)))
29e15533
JS
1001
1002(define-public ghc-inspection-testing
1003 (package
1004 (name "ghc-inspection-testing")
1005 (version "0.4.2.2")
1006 (source
1007 (origin
1008 (method url-fetch)
1009 (uri (string-append
1010 "https://hackage.haskell.org/package/inspection-testing/"
1011 "inspection-testing-" version ".tar.gz"))
1012 (sha256
1013 (base32
1014 "1bppz99p6ix6hah8lbr9mapl2zxgmkg9i7h6hk8wq6zf54hwz3yp"))))
1015 (build-system haskell-build-system)
1016 (home-page
1017 "https://github.com/nomeata/inspection-testing")
1018 (synopsis "GHC plugin to do inspection testing")
1019 (description
1020 "Some carefully crafted libraries make promises to their users beyond
1021functionality and performance.
1022
1023Examples are: Fusion libraries promise intermediate data structures to be
1024eliminated. Generic programming libraries promise that the generic
1025implementation is identical to the hand-written one. Some libraries may
1026promise allocation-free or branch-free code.
1027
1028Conventionally, the modus operandi in all these cases is that the library
1029author manually inspects the (intermediate or final) code produced by the
1030compiler. This is not only tedious, but makes it very likely that some change,
1031either in the library itself or the surrounding eco-system, breaks the
1032library's promised without anyone noticing.
1033
1034This package provides a disciplined way of specifying such properties, and
1035have them checked by the compiler. This way, this checking can be part of the
1036ususal development cycle and regressions caught early.
1037
1038See the documentation in \"Test.Inspection\" or the project webpage for more
1039examples and more information.")
1040 (license license:expat)))