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>
5 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
6 ;;; Copyright © 2016 Nikita <nikita@n0.is>
7 ;;; Copyright © 2016 David Craven <david@craven.ch>
8 ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
9 ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
12 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
14 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
16 ;;; This file is part of GNU Guix.
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.
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.
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/>.
31 (define-module (gnu packages haskell-check)
32 #:use-module (gnu packages)
33 #:use-module (gnu packages haskell-crypto)
34 #:use-module (gnu packages haskell-xyz)
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))
41 (define-public ghc-tasty-ant-xml
43 (name "ghc-tasty-ant-xml")
49 "https://hackage.haskell.org/package/tasty-ant-xml/tasty-ant-xml-"
54 "13qqpl1prr9dda87dp45mqybay24n8rhxxgvpc9j34kh72g8j5qw"))))
55 (build-system haskell-build-system)
57 `(("ghc-generic-deriving" ,ghc-generic-deriving)
59 ("ghc-tagged" ,ghc-tagged)
60 ("ghc-tasty" ,ghc-tasty)))
62 "https://github.com/ocharles/tasty-ant-xml")
64 "Render tasty output to XML for Jenkins")
66 "A tasty ingredient to output test results in XML, using the Ant
67 schema. This XML can be consumed by the Jenkins continuous integration
69 (license license:bsd-3)))
71 (define-public ghc-tasty-smallcheck
73 (name "ghc-tasty-smallcheck")
79 "https://hackage.haskell.org/package/tasty-smallcheck/tasty-smallcheck-"
84 "1n66ngzllf3xrlqykwszlkwsi96n5nkm7xbpfq7774vpvfnafjri"))))
85 (build-system haskell-build-system)
87 `(("ghc-tasty" ,ghc-tasty)
88 ("ghc-smallcheck" ,ghc-smallcheck)
89 ("ghc-async" ,ghc-async)
90 ("ghc-tagged" ,ghc-tagged)))
91 (home-page "https://documentup.com/feuerbach/tasty")
92 (synopsis "SmallCheck support for the Tasty test framework")
93 (description "This package provides SmallCheck support for the Tasty
94 Haskell test framework.")
95 (license license:bsd-3)))
97 (define-public ghc-tasty-quickcheck
99 (name "ghc-tasty-quickcheck")
105 "https://hackage.haskell.org/package/tasty-quickcheck/"
106 "tasty-quickcheck-" version ".tar.gz"))
109 "0k4vvd5vmrncv1s6gdf03l4xijwlk428sb9jfx8n1zaz02971msh"))))
110 (build-system haskell-build-system)
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
122 Haskell test framework.")
123 (license license:expat)))
125 (define-public ghc-tasty-golden
127 (name "ghc-tasty-golden")
133 "https://hackage.haskell.org/package/tasty-golden/tasty-golden-"
138 "0k3ibjhjc9vcwzrjnl4rnwvfm8l81q347nb7dgvcib6n5wm3s404"))))
139 (build-system haskell-build-system)
141 `(("ghc-temporary" ,ghc-temporary)
142 ("ghc-tasty" ,ghc-tasty)
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)))
149 "https://github.com/feuerbach/tasty-golden")
150 (synopsis "Golden tests support for tasty")
152 "This package provides support for @code{golden testing}. A @dfn{golden
153 test} is an IO action that writes its result to a file. To pass the test, this
154 output file should be identical to the corresponding @code{golden} file, which
155 contains the correct result for the test.")
156 (license license:expat)))
158 (define-public ghc-tasty
166 "https://hackage.haskell.org/package/tasty/tasty-"
171 "0qpn0avpw4w1qq5r2gwh2piipj0llqq6ylagr3xnqiraq6mhg8cc"))))
172 (build-system haskell-build-system)
174 `(("ghc-tagged" ,ghc-tagged)
175 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
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)
180 ("ghc-clock-bootstrap" ,ghc-clock-bootstrap)
181 ("ghc-wcwidth" ,ghc-wcwidth-bootstrap)))
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
185 you combine your unit tests, golden tests, QuickCheck/SmallCheck properties,
186 and any other types of tests into a single test suite.")
187 (license license:expat)))
189 (define-public ghc-tasty-hedgehog
191 (name "ghc-tasty-hedgehog")
196 (uri (string-append "https://hackage.haskell.org/package/"
197 "tasty-hedgehog/tasty-hedgehog-" version ".tar.gz"))
200 "1mbg5q0c0xfrk4npfj60pi693igb7r5l78x6xf9fk2jglw0nmxhz"))))
201 (build-system haskell-build-system)
203 `(("ghc-tagged" ,ghc-tagged)
204 ("ghc-tasty" ,ghc-tasty)
205 ("ghc-hedgehog" ,ghc-hedgehog)))
207 `(("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)))
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}
215 with the @url{https://hackage.haskell.org/package/tasty, tasty testing
217 (license license:bsd-3)))
219 (define-public ghc-tasty-hspec
221 (name "ghc-tasty-hspec")
227 "mirror://hackage/package/tasty-hspec/tasty-hspec-"
232 "0i9kdzjpk750sa078jj3iyhp72k0177zk7vxl131r6dkyz09x27y"))))
233 (build-system haskell-build-system)
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)))
243 ("4" "1yppwhs2r2rlwrzli9ccv5ldgl95h5p7pqhsr898r3das6daf6sk")))
245 "https://github.com/mitchellwrosen/tasty-hspec")
247 "Hspec support for the Tasty test framework")
249 "This package provides a Tasty provider for Hspec test suites.")
250 (license license:bsd-3)))
252 (define-public ghc-tasty-hunit
254 (name "ghc-tasty-hunit")
260 "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-"
265 "1xvf5xs0r8xqkcg354klz4wyzwyzvinalyl6f4fnxwqmzrgch8s8"))))
266 (build-system haskell-build-system)
268 `(("ghc-call-stack" ,ghc-call-stack-boot)
269 ("ghc-tasty" ,ghc-tasty)))
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
274 (license license:expat)))
276 (define-public ghc-tasty-kat
278 (name "ghc-tasty-kat")
282 (uri (string-append "https://hackage.haskell.org/package/"
283 "tasty-kat/tasty-kat-" version ".tar.gz"))
286 "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7"))))
287 (build-system haskell-build-system)
289 `(("ghc-tasty" ,ghc-tasty)
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")
295 "This package provides a @dfn{Known Answer Tests} (KAT) framework for
297 (license license:expat)))
299 (define-public ghc-tasty-lua
301 (name "ghc-tasty-lua")
306 (uri (string-append "https://hackage.haskell.org/package/"
307 "tasty-lua/tasty-lua-" version ".tar.gz"))
310 "0xlj36rrhkx312h7smx6ay20rhlhxvw2ma2ckdnzv1pvmdn6p5qx"))))
311 (build-system haskell-build-system)
313 `(("ghc-file-embed" ,ghc-file-embed)
314 ("ghc-hslua" ,ghc-hslua)
315 ("ghc-tasty" ,ghc-tasty)))
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
322 (license license:expat)))
324 (define-public ghc-tasty-th
326 (name "ghc-tasty-th")
332 "https://hackage.haskell.org/package/tasty-th/tasty-th-"
336 "0b2ivrw2257m4cy4rjnkwqlarh83j1y3zywnmaqqqbvy667sqnj3"))))
337 (build-system haskell-build-system)
339 `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
340 ("ghc-tasty" ,ghc-tasty)
341 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
342 (home-page "https://github.com/bennofs/tasty-th")
343 (synopsis "Automatically generate tasty TestTrees")
345 "Tasty-th automatically generates tasty TestTrees from functions of the
346 current module, using TemplateHaskell. This is a fork the original
347 test-framework-th package, modified to work with tasty instead of
349 (license license:bsd-3)))
351 (define-public ghc-tasty-rerun
353 (name "ghc-tasty-rerun")
358 "https://hackage.haskell.org/package/tasty-rerun/"
359 "tasty-rerun-" version ".tar.gz"))
362 "0s0zj8ds4g1w2cjzm2lh25ivg962jigqdrbj08v3dbz64lx4mlzr"))))
363 (build-system haskell-build-system)
365 `(("ghc-optparse-applicative" ,ghc-optparse-applicative)
366 ("ghc-reducers" ,ghc-reducers)
367 ("ghc-split" ,ghc-split)
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
373 test tree based on the result of a previous test run. You can use this to run
374 only those tests that failed in the last run, or to only run the tests that have
375 been added since previous test run.")
376 (license license:bsd-3)))
378 (define-public ghc-tasty-expected-failure
380 (name "ghc-tasty-expected-failure")
385 (uri (string-append "https://hackage.haskell.org/package/"
386 "tasty-expected-failure/tasty-expected-failure-"
390 "175gdk1mkslcwjxajkbl4zmaigzf8h4svzd7va5qb519y0dxk28n"))))
391 (build-system haskell-build-system)
393 `(("ghc-tagged" ,ghc-tagged)
394 ("ghc-tasty" ,ghc-tasty)))
395 (home-page "https://github.com/nomeata/tasty-expected-failure")
396 (synopsis "Mark tasty tests as failure expected")
398 "With the function @code{Test.Tasty.ExpectedFailure.expectFail} in the
399 provided module @code{Test.Tasty.ExpectedFailure}, you can mark that you
400 expect test cases to fail, and not to pass. This can be used for test-driven
402 (license license:expat)))
404 (define-public ghc-quickcheck-instances
406 (name "ghc-quickcheck-instances")
412 "https://hackage.haskell.org/package/"
413 "quickcheck-instances/quickcheck-instances-"
417 "14asr9r7da3w7p4hjj51w2yb002nz8x0np8hdz9z4yjvi60vyrax"))))
418 (build-system haskell-build-system)
421 ("2" "1ia5fjhpg7rz793552v88gv2iqx7hl9mi2g09m0llasy1cpzc9jr")))
423 `(("ghc-quickcheck" ,ghc-quickcheck)
424 ("ghc-base-compat" ,ghc-base-compat)
425 ("ghc-case-insensitive" ,ghc-case-insensitive)
426 ("ghc-hashable" ,ghc-hashable)
427 ("ghc-old-time" ,ghc-old-time)
428 ("ghc-scientific" ,ghc-scientific)
429 ("ghc-tagged" ,ghc-tagged)
430 ("ghc-time-compat" ,ghc-time-compat)
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")
436 (synopsis "Common quickcheck instances")
437 (description "This package provides QuickCheck instances for types
438 provided by the Haskell Platform.")
439 (license license:bsd-3)))
441 (define-public ghc-quickcheck-unicode
443 (name "ghc-quickcheck-unicode")
449 "https://hackage.haskell.org/package/quickcheck-unicode/"
450 "quickcheck-unicode-" version ".tar.gz"))
453 "0s43s1bzbg3gwsjgm7fpyksd1339f0m26dlw2famxwyzgvm0a80k"))))
454 (build-system haskell-build-system)
455 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
457 "https://github.com/bos/quickcheck-unicode")
458 (synopsis "Generator functions Unicode-related tests")
459 (description "This package provides generator and shrink functions for
460 testing Unicode-related software.")
461 (license license:bsd-3)))
463 (define-public ghc-quickcheck-io
465 (name "ghc-quickcheck-io")
471 "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-"
476 "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv"))))
477 (build-system haskell-build-system)
479 `(("ghc-quickcheck" ,ghc-quickcheck)
480 ("ghc-hunit" ,ghc-hunit)))
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
485 use HUnit assertions as QuickCheck properties.")
486 (license license:expat)))
488 (define-public ghc-quickcheck
490 (name "ghc-quickcheck")
492 (outputs '("out" "static" "doc"))
497 "https://hackage.haskell.org/package/QuickCheck/QuickCheck-"
502 "0426j43af8v3qmdjjqxivazsvr3a2brac8yw09vpgpjkb2m0nmkv"))))
503 (build-system haskell-build-system)
505 `(("ghc-random" ,ghc-random)
506 ("ghc-splitmix" ,ghc-splitmix-bootstrap)))
507 (home-page "https://github.com/nick8325/quickcheck")
508 (synopsis "Automatic testing of Haskell programs")
510 "QuickCheck is a library for random testing of program properties. The
511 programmer provides a specification of the program, in the form of properties
512 which functions should satisfy, and QuickCheck then tests that the properties
513 hold in a large number of randomly generated cases. Specifications are
514 expressed in Haskell, using combinators defined in the QuickCheck library.")
515 (license license:bsd-3)))
517 (define-public ghc-test-framework
519 (name "ghc-test-framework")
524 (uri (string-append "https://hackage.haskell.org/package/test-framework/"
525 "test-framework-" version ".tar.gz"))
528 "1hhacrzam6b8f10hyldmjw8pb7frdxh04rfg3farxcxwbnhwgbpm"))))
529 (build-system haskell-build-system)
531 `(#:tests? #f ; FIXME: Tests do not build.
533 ("5" "18g92ajx3ghznd6k3ihj22ln29n676ailzwx3k0f1kj3bmpilnh6")))
535 `(("ghc-hunit" ,ghc-hunit)
536 ("ghc-quickcheck" ,ghc-quickcheck)))
538 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
539 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
540 ("ghc-hostname" ,ghc-hostname)
541 ("ghc-old-locale" ,ghc-old-locale)
542 ("ghc-random" ,ghc-random)
543 ("ghc-regex-posix" ,ghc-regex-posix)
545 ("ghc-libxml" ,ghc-libxml)
546 ("ghc-semigroups" ,ghc-semigroups-bootstrap)))
547 (home-page "https://batterseapower.github.io/test-framework/")
548 (synopsis "Framework for running and organising tests")
550 "This package allows tests such as QuickCheck properties and HUnit test
551 cases to be assembled into test groups, run in parallel (but reported in
552 deterministic order, to aid diff interpretation) and filtered and controlled
553 by command line options. All of this comes with colored test output, progress
554 reporting and test statistics output.")
555 (license license:bsd-3)))
557 (define-public ghc-test-framework-hunit
559 (name "ghc-test-framework-hunit")
564 (uri (string-append "https://hackage.haskell.org/package/"
565 "test-framework-hunit/test-framework-hunit-"
569 "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm"))))
570 (build-system haskell-build-system)
573 ("3" "0i9mlalv7cl1iq43ld5myrnpszq5rxmd79hk495dcb08rglhgl3z")))
575 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
576 ("ghc-hunit" ,ghc-hunit)
577 ("ghc-test-framework" ,ghc-test-framework)))
578 (home-page "https://batterseapower.github.io/test-framework/")
579 (synopsis "HUnit support for test-framework")
581 "This package provides HUnit support for the test-framework package.")
582 (license license:bsd-3)))
584 (define-public ghc-test-framework-quickcheck2
586 (name "ghc-test-framework-quickcheck2")
591 (uri (string-append "https://hackage.haskell.org/package/"
592 "test-framework-quickcheck2/"
593 "test-framework-quickcheck2-" version ".tar.gz"))
596 "0ngf9vvby4nrdf1i7dxf5m9jn0g2pkq32w48xdr92n9hxka7ixn9"))))
597 (build-system haskell-build-system)
600 ("1" "1vmpk70h1594h9s216d3ngkb399fpny1d3sh4gg0vrc75p4as68d")))
602 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
603 ("ghc-quickcheck" ,ghc-quickcheck)
604 ("ghc-random" ,ghc-random)
605 ("ghc-test-framework" ,ghc-test-framework)))
606 (home-page "https://batterseapower.github.io/test-framework/")
607 (synopsis "QuickCheck2 support for test-framework")
609 "This package provides QuickCheck2 support for the test-framework
611 (license license:bsd-3)))
613 (define-public ghc-test-framework-th
615 (name "ghc-test-framework-th")
620 (uri (string-append "https://hackage.haskell.org/package/"
621 "test-framework-th-" version "/"
622 "test-framework-th-" version ".tar.gz"))
625 "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b"))))
626 (build-system haskell-build-system)
628 `(("ghc-test-framework" ,ghc-test-framework)
629 ("ghc-language-haskell-extract" ,ghc-language-haskell-extract)
630 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
631 ("ghc-regex-posix" ,ghc-regex-posix)))
632 (home-page "https://github.com/finnsson/test-generator")
633 (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code
634 using Template Haskell")
635 (description "This library contains two functions:
636 @code{defaultMainGenerator} and @code{testGroupGenerator}.
638 @code{defaultMainGenerator} will extract all functions beginning with
639 @code{case_}, @code{prop_}, or @code{test_} in the module and put them in a
642 @code{testGroupGenerator} is like @code{defaultMainGenerator} but without
643 @code{defaultMain}. It is useful if you need a function for the testgroup
644 \(e.g. if you want to be able to call the testgroup from another module).")
645 (license license:bsd-3)))
647 (define-public ghc-hunit
651 (outputs '("out" "static" "doc"))
655 (uri (string-append "https://hackage.haskell.org/package/HUnit/"
656 "HUnit-" version ".tar.gz"))
659 "1pnhwqq5v8h48gbp3ibv3skfj25mf4zs5svxcavq93p9cswycj3l"))))
660 (build-system haskell-build-system)
662 ;; We cannot use ghc-call-stack there, because it depends on
663 ;; ghc-nanospec, which depends on ghc-hunit.
664 `(("ghc-call-stack" ,ghc-call-stack-boot)))
665 (home-page "http://hunit.sourceforge.net/")
666 (synopsis "Unit testing framework for Haskell")
668 "HUnit is a unit testing framework for Haskell, inspired by the
669 JUnit tool for Java.")
670 (license license:bsd-3)))
672 (define-public hspec-discover
674 (name "hspec-discover")
679 (uri (string-append "https://hackage.haskell.org/package/"
680 "hspec-discover/hspec-discover-"
684 "0r47fm94wa6qrhp8cc1zzkjrxc32rnagfn9m9ga4dm6p6ydw4c8b"))))
685 (build-system haskell-build-system)
687 `(("ghc-quickcheck" ,ghc-quickcheck)
688 ("ghc-hspec-meta" ,ghc-hspec-meta)))
689 (home-page "https://hspec.github.io/")
690 (synopsis "Automatically discover and run Hspec tests")
691 (description "hspec-discover is a tool which automatically discovers and
693 (license license:expat)))
695 (define-public ghc-hspec-core
697 (name "ghc-hspec-core")
702 (uri (string-append "https://hackage.haskell.org/package/hspec-core/"
703 "hspec-core-" version ".tar.gz"))
706 "08vk8588lap00hsln8zl64dazbb28lzk4b4h5vnm7xvhg7r21k1c"))))
707 (build-system haskell-build-system)
708 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
710 `(("ghc-setenv" ,ghc-setenv)
711 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
712 ("ghc-clock" ,ghc-clock)
713 ("ghc-quickcheck-io" ,ghc-quickcheck-io)
714 ("ghc-hunit" ,ghc-hunit)
715 ("ghc-quickcheck" ,ghc-quickcheck)
716 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
717 ("ghc-silently" ,ghc-silently)
718 ("ghc-tf-random" ,ghc-tf-random)))
719 (home-page "https://hspec.github.io/")
720 (synopsis "Testing framework for Haskell")
721 (description "This library exposes internal types and functions that can
722 be used to extend Hspec's functionality.")
723 (license license:expat)))
725 (define-public ghc-hspec-meta
727 (name "ghc-hspec-meta")
732 (uri (string-append "https://hackage.haskell.org/package/hspec-meta/"
733 "hspec-meta-" version ".tar.gz"))
736 "1n1a4633wfivylglji8920f67mx7qz8j4q58n8p7dxk6yg4h3mz6"))))
737 (build-system haskell-build-system)
739 `(("ghc-quickcheck" ,ghc-quickcheck)
740 ("ghc-hunit" ,ghc-hunit)
741 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
742 ("ghc-clock" ,ghc-clock)
743 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
744 ("ghc-setenv" ,ghc-setenv)
745 ("ghc-random" ,ghc-random)
746 ("ghc-quickcheck-io" ,ghc-quickcheck-io)))
747 (home-page "https://hspec.github.io/")
748 (synopsis "Version of Hspec to test Hspec itself")
749 (description "This library provides a stable version of Hspec which is
750 used to test the in-development version of Hspec.")
751 (license license:expat)))
753 (define-public ghc-hspec
760 (uri (string-append "https://hackage.haskell.org/package/hspec/"
761 "hspec-" version ".tar.gz"))
764 "1x8rcr7j1azcaw0fg1xzp8j0gr4ias36z09aj24i4xp8pnyfp341"))))
765 (build-system haskell-build-system)
766 (outputs '("out" "static" "doc"))
768 `(("ghc-hspec-core" ,ghc-hspec-core)
769 ("hspec-discover" ,hspec-discover)
770 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
771 ("ghc-quickcheck" ,ghc-quickcheck)
772 ("ghc-hunit" ,ghc-hunit)
773 ("ghc-stringbuilder" ,ghc-stringbuilder)
774 ("ghc-hspec-meta" ,ghc-hspec-meta)))
775 (home-page "https://hspec.github.io/")
776 (synopsis "Testing Framework for Haskell")
777 (description "This library provides the Hspec testing framework for
778 Haskell, inspired by the Ruby library RSpec.")
779 (license license:expat)))
781 (define-public ghc-hspec-contrib
783 (name "ghc-hspec-contrib")
787 (uri (string-append "https://hackage.haskell.org/package/"
788 "hspec-contrib/hspec-contrib-"
792 "0hhzxaa3fxz5mk5qcsrnfr98a7bn3szx2ydgr0x9mbqmm1jg06rc"))))
793 (build-system haskell-build-system)
795 `(("ghc-hspec-core" ,ghc-hspec-core)
796 ("ghc-hunit" ,ghc-hunit)
797 ("ghc-hspec" ,ghc-hspec)
798 ("ghc-quickcheck" ,ghc-quickcheck)))
800 `(("hspec-discover" ,hspec-discover)))
801 (home-page "https://hspec.github.io/")
802 (synopsis "Contributed functionality for Hspec")
804 "This package provides contributed Hspec extensions.")
805 (license license:expat)))
807 (define-public ghc-hspec-expectations
809 (name "ghc-hspec-expectations")
814 (uri (string-append "https://hackage.haskell.org/package/"
815 "hspec-expectations/hspec-expectations-"
819 "1vxl9zazbaapijr6zmcj72j9wf7ka1pirrjbwddwwddg3zm0g5l1"))))
820 (build-system haskell-build-system)
821 ;; Tests depend on ghc-nanospec.
822 (arguments '(#:tests? #f))
823 (inputs `(("ghc-hunit" ,ghc-hunit)))
824 (home-page "https://github.com/sol/hspec-expectations")
825 (synopsis "Catchy combinators for HUnit")
826 (description "This library provides catchy combinators for HUnit, see
827 @uref{https://github.com/sol/hspec-expectations#readme, the README}.")
828 (license license:expat)))
830 (define-public ghc-nanospec
832 (name "ghc-nanospec")
837 (uri (string-append "https://hackage.haskell.org/package/"
842 "1rcmhl9bhyfvanalnf1r86wkx6rq6wdvagnw1h011jcnnb1cq56g"))))
843 (build-system haskell-build-system)
845 `(("ghc-hspec" ,ghc-hspec)
846 ("ghc-silently" ,ghc-silently)))
847 (home-page "https://github.com/hspec/nanospec#readme")
848 (synopsis "Lightweight implementation of a subset of Hspec's API")
850 "Nanospec is a lightweight implementation of a subset of Hspec's API with
851 minimal dependencies.")
852 (license license:expat)))
854 (define-public ghc-crypto-cipher-tests
856 (name "ghc-crypto-cipher-tests")
861 (uri (string-append "https://hackage.haskell.org/package/"
862 "crypto-cipher-tests-" version "/"
863 "crypto-cipher-tests-" version ".tar.gz"))
866 "19wqignlq90qwpam01hnmmrxaxh5lkax9l1l6rlbi4a07nvp1dnz"))))
867 (build-system haskell-build-system)
868 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)
869 ("ghc-hunit" ,ghc-hunit)
870 ("ghc-test-framework" ,ghc-test-framework)
871 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
872 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
873 ("ghc-byteable" ,ghc-byteable)
874 ("ghc-securemem" ,ghc-securemem)
875 ("ghc-crypto-cipher-types" ,ghc-crypto-cipher-types)))
876 (home-page "https://github.com/vincenthz/hs-crypto-cipher")
877 (synopsis "Generic cryptography cipher tests for Haskell")
878 (description " This Haskell package contains generic tests for
879 cryptographic ciphers, and is used by the test runners of various Haskell
880 implementations of cryptographic ciphers.")
881 (license license:bsd-3)))
883 (define-public ghc-hedgehog
885 (name "ghc-hedgehog")
891 "mirror://hackage/package/hedgehog/hedgehog-"
896 "1qc7hkqbnsk3f5r26wc35r3qiy941nmcxhfqgcq9027kw4gs0bi0"))))
897 (build-system haskell-build-system)
899 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
900 ("ghc-async" ,ghc-async)
901 ("ghc-concurrent-output" ,ghc-concurrent-output)
902 ("ghc-exceptions" ,ghc-exceptions)
903 ("ghc-fail" ,ghc-fail)
904 ("ghc-lifted-async" ,ghc-lifted-async)
905 ("ghc-mmorph" ,ghc-mmorph)
906 ("ghc-monad-control" ,ghc-monad-control)
907 ("ghc-pretty-show" ,ghc-pretty-show)
908 ("ghc-primitive" ,ghc-primitive)
909 ("ghc-random" ,ghc-random)
910 ("ghc-resourcet" ,ghc-resourcet)
911 ("ghc-semigroups" ,ghc-semigroups)
912 ("ghc-th-lift" ,ghc-th-lift)
913 ("ghc-transformers-base" ,ghc-transformers-base)
914 ("ghc-wl-pprint-annotated"
915 ,ghc-wl-pprint-annotated)))
916 (home-page "https://hedgehog.qa")
917 (synopsis "Property-based testing in the spirt of QuickCheck")
919 "Hedgehog is a property-based testing system, in the spirit of
920 QuickCheck. Hedgehog uses integrated shrinking, so shrinks obey the invariants
921 of generated values by construction.
923 To get started quickly, see the examples:
924 @uref{https://github.com/hedgehogqa/haskell-hedgehog/tree/master/hedgehog-example}")
925 (license license:bsd-3)))
927 (define-public cabal-doctest
929 (name "cabal-doctest")
934 (uri (string-append "https://hackage.haskell.org/package/"
935 "cabal-doctest/cabal-doctest-"
939 "03if74imlhhk7m56nci5f1wclniwqdmwl4hl177040j1gnlac9i0"))))
940 (build-system haskell-build-system)
941 (home-page "https://github.com/phadej/cabal-doctest")
942 (synopsis "Setup.hs helper for running doctests")
944 "To properly work, the @code{doctest} package needs plenty of
945 configuration. This library provides the common bits for writing custom
946 @file{Setup.hs} files.")
947 (license license:bsd-3)))
949 (define-public ghc-testing-type-modifiers
951 (name "ghc-testing-type-modifiers")
956 (uri (string-append "https://hackage.haskell.org/package/"
957 "testing-type-modifiers/testing-type-modifiers-"
961 "1wh2n95n39ivv6kbqn42vbzrj8zagsmk6f2al2qj40bg5kgdl2q5"))))
962 (build-system haskell-build-system)
963 (home-page "https://hackage.haskell.org/package/testing-type-modifiers")
964 (synopsis "Data type modifiers for property based testing")
965 (description "Property based testing libraries such as QuickCheck tend to
966 include type modifiers. Most of them are used to quantify over subsets of a
967 type. This library is intended to supply these modifiers to be used by
968 testing libraries, in an effort to make properties more portable between
969 testing frameworks.")
970 (license license:unlicense)))
972 (define-public ghc-testing-feat
974 (name "ghc-testing-feat")
979 (uri (string-append "https://hackage.haskell.org/package/"
980 "testing-feat/testing-feat-" version ".tar.gz"))
983 "1v2qzzpf1s008g7q6q67glf7vbm1pkpq4rc3ii74f4g6vhfx610r"))))
984 (build-system haskell-build-system)
986 `(("ghc-quickcheck" ,ghc-quickcheck)
987 ("ghc-size-based" ,ghc-size-based)
988 ("ghc-testing-type-modifiers" ,ghc-testing-type-modifiers)
989 ("ghc-semigroups" ,ghc-semigroups)))
990 (home-page "https://github.com/JonasDuregard/testing-feat")
991 (synopsis "Functional Enumeration of Algebraic Types")
992 (description "Feat (Functional Enumeration of Algebraic Types)
993 provides enumerations as functions from natural numbers to
994 values (similar to @code{toEnum} but for any algebraic data type). This
995 can be used for SmallCheck-style systematic testing, QuickCheck-style
996 random testing, and hybrids of the two.")
997 (license license:bsd-3)))
999 (define-public ghc-inspection-testing
1001 (name "ghc-inspection-testing")
1007 "https://hackage.haskell.org/package/inspection-testing/"
1008 "inspection-testing-" version ".tar.gz"))
1011 "1bppz99p6ix6hah8lbr9mapl2zxgmkg9i7h6hk8wq6zf54hwz3yp"))))
1012 (build-system haskell-build-system)
1014 "https://github.com/nomeata/inspection-testing")
1015 (synopsis "GHC plugin to do inspection testing")
1017 "Some carefully crafted libraries make promises to their users beyond
1018 functionality and performance.
1020 Examples are: Fusion libraries promise intermediate data structures to be
1021 eliminated. Generic programming libraries promise that the generic
1022 implementation is identical to the hand-written one. Some libraries may
1023 promise allocation-free or branch-free code.
1025 Conventionally, the modus operandi in all these cases is that the library
1026 author manually inspects the (intermediate or final) code produced by the
1027 compiler. This is not only tedious, but makes it very likely that some change,
1028 either in the library itself or the surrounding eco-system, breaks the
1029 library's promised without anyone noticing.
1031 This package provides a disciplined way of specifying such properties, and
1032 have them checked by the compiler. This way, this checking can be part of the
1033 regular development cycle and regressions caught early.
1035 See the documentation in \"Test.Inspection\" or the project webpage for more
1036 examples and more information.")
1037 (license license:expat)))