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, 2021 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>
15 ;;; Copyright © 2020 Carlo Holl <carloholl@gmail.com>
16 ;;; Copyright © 2021 John Kehayias <john.kehayias@protonmail.com>
18 ;;; This file is part of GNU Guix.
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33 (define-module (gnu packages haskell-check)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages haskell-crypto)
36 #:use-module (gnu packages haskell-web)
37 #:use-module (gnu packages haskell-xyz)
38 #:use-module (guix build-system haskell)
39 #:use-module (guix download)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (guix packages)
42 #:use-module (guix utils))
44 (define-public ghc-tasty-ant-xml
46 (name "ghc-tasty-ant-xml")
52 "https://hackage.haskell.org/package/tasty-ant-xml/tasty-ant-xml-"
57 "0h9mllhw9cd0rn34xhj8grwmbny7z7hpd8qmp9lfcdj0s4qx9vx8"))))
58 (build-system haskell-build-system)
60 (list ghc-generic-deriving ghc-xml ghc-tagged 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 "0csgwn3vch0jnpqyyfnrfjq4z0dpl67imh5a7byll3hhlyidgjym"))))
85 (build-system haskell-build-system)
87 (list ghc-tasty ghc-smallcheck ghc-async ghc-tagged))
88 (home-page "https://documentup.com/feuerbach/tasty")
89 (synopsis "SmallCheck support for the Tasty test framework")
90 (description "This package provides SmallCheck support for the Tasty
91 Haskell test framework.")
92 (license license:bsd-3)))
94 (define-public ghc-tasty-quickcheck
96 (name "ghc-tasty-quickcheck")
102 "https://hackage.haskell.org/package/tasty-quickcheck/"
103 "tasty-quickcheck-" version ".tar.gz"))
106 "0i1i78587znqzwps49milyr5n2k388ld2kr9ysz1vw8gcw51qq49"))))
107 (build-system haskell-build-system)
116 (home-page "http://documentup.com/feuerbach/tasty")
117 (synopsis "QuickCheck support for the Tasty test framework")
118 (description "This package provides QuickCheck support for the Tasty
119 Haskell test framework.")
120 (license license:expat)))
122 (define-public ghc-tasty-golden
124 (name "ghc-tasty-golden")
130 "https://hackage.haskell.org/package/tasty-golden/tasty-golden-"
135 "1nskavqgfxx1cw7q6c0cmizlwj54rnlv93yhgssaa77gv1nbvwpn"))))
136 (build-system haskell-build-system)
139 ghc-optparse-applicative
144 (native-inputs (list ghc-tasty-hunit))
146 "https://github.com/feuerbach/tasty-golden")
147 (synopsis "Golden tests support for tasty")
149 "This package provides support for @code{golden testing}. A @dfn{golden
150 test} is an IO action that writes its result to a file. To pass the test, this
151 output file should be identical to the corresponding @code{golden} file, which
152 contains the correct result for the test.")
153 (license license:expat)))
155 (define-public ghc-tasty
163 "https://hackage.haskell.org/package/tasty/tasty-"
168 "0574hbqzxzyv6vsk5kzbf04kz58y0iy8x9ydcj4b8fpncgmgy63g"))))
169 (build-system haskell-build-system)
173 ghc-optparse-applicative
178 ghc-wcwidth-bootstrap))
179 (home-page "http://documentup.com/feuerbach/tasty")
180 (synopsis "Modern and extensible testing framework")
181 (description "Tasty is a modern testing framework for Haskell. It lets
182 you combine your unit tests, golden tests, QuickCheck/SmallCheck properties,
183 and any other types of tests into a single test suite.")
184 (license license:expat)))
186 (define-public ghc-tasty-hedgehog
188 (name "ghc-tasty-hedgehog")
193 (uri (string-append "https://hackage.haskell.org/package/"
194 "tasty-hedgehog/tasty-hedgehog-" version ".tar.gz"))
197 "0cy49z8n124xh2ra2482vfy5if1n6d9lbdjma2zg1mxfj0k0zyfb"))))
198 (build-system haskell-build-system)
200 (list ghc-tagged ghc-tasty ghc-hedgehog))
202 (list ghc-tasty-expected-failure))
203 (home-page "https://github.com/qfpl/tasty-hedgehog")
204 (synopsis "Integration for tasty and hedgehog")
205 (description "This package provides the means for integrating the
206 @url{https://hackage.haskell.org/package/hedgehog, hedgehog testing library}
207 with the @url{https://hackage.haskell.org/package/tasty, tasty testing
209 (license license:bsd-3)))
211 (define-public ghc-tasty-hspec
213 (name "ghc-tasty-hspec")
219 "https://hackage.haskell.org/package/tasty-hspec/tasty-hspec-"
224 "02s82ijs2ringqxsqbm7m3vcy5brmwxa617azxv0v2phi3rdkjvl"))))
225 (build-system haskell-build-system)
233 ghc-tasty-quickcheck))
236 ("1" "0za15rg0szacxq9yfxxjzddr77ai7ng5827a20pj9dr5anjlnajj")))
238 "https://github.com/mitchellwrosen/tasty-hspec")
240 "Hspec support for the Tasty test framework")
242 "This package provides a Tasty provider for Hspec test suites.")
243 (license license:bsd-3)))
245 (define-public ghc-tasty-hunit
247 (name "ghc-tasty-hunit")
253 "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-"
258 "0gz6zz3w7s44pymw33xcxnawryl27zk33766sab96nz2xh91kvxp"))))
259 (build-system haskell-build-system)
261 (list ghc-call-stack-boot ghc-tasty))
262 (home-page "http://documentup.com/feuerbach/tasty")
263 (synopsis "HUnit support for the Tasty test framework")
264 (description "This package provides HUnit support for the Tasty Haskell
266 (license license:expat)))
268 (define-public ghc-tasty-kat
270 (name "ghc-tasty-kat")
274 (uri (string-append "https://hackage.haskell.org/package/"
275 "tasty-kat/tasty-kat-" version ".tar.gz"))
278 "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7"))))
279 (build-system haskell-build-system)
281 (list ghc-tasty ghc-tasty-quickcheck ghc-tasty-hunit))
282 (home-page "https://github.com/vincenthz/tasty-kat")
283 (synopsis "Known Answer Tests (KAT) framework for tasty")
285 "This package provides a @dfn{Known Answer Tests} (KAT) framework for
287 (license license:expat)))
289 (define-public ghc-tasty-lua
291 (name "ghc-tasty-lua")
296 (uri (string-append "https://hackage.haskell.org/package/"
297 "tasty-lua/tasty-lua-" version ".tar.gz"))
300 "0wa73ihkjcxi50lgpdzwwdx7s903lqi79hw7hxlvhbcvdly1cq53"))))
301 (build-system haskell-build-system)
303 (list ghc-file-embed ghc-hslua ghc-tasty))
305 (list ghc-tasty-hunit))
306 (home-page "https://github.com/hslua/tasty-lua")
307 (synopsis "Write tests in Lua, integrate into tasty")
308 (description "This package gives users the ability to define tasty tests
310 (license license:expat)))
312 (define-public ghc-tasty-th
314 (name "ghc-tasty-th")
320 "https://hackage.haskell.org/package/tasty-th/tasty-th-"
324 "0b2ivrw2257m4cy4rjnkwqlarh83j1y3zywnmaqqqbvy667sqnj3"))))
325 (build-system haskell-build-system)
327 (list ghc-haskell-src-exts ghc-tasty ghc-tasty-hunit))
328 (home-page "https://github.com/bennofs/tasty-th")
329 (synopsis "Automatically generate tasty TestTrees")
331 "Tasty-th automatically generates tasty TestTrees from functions of the
332 current module, using TemplateHaskell. This is a fork the original
333 test-framework-th package, modified to work with tasty instead of
335 (license license:bsd-3)))
337 (define-public ghc-tasty-rerun
339 (name "ghc-tasty-rerun")
344 "https://hackage.haskell.org/package/tasty-rerun/"
345 "tasty-rerun-" version ".tar.gz"))
348 "0sccp5zx9v2rx741nbmgd8mzjhy5m4v74hk26d23xz93ph8aqx7s"))))
349 (build-system haskell-build-system)
351 (list ghc-optparse-applicative ghc-reducers ghc-split ghc-tagged
353 (home-page "https://github.com/ocharles/tasty-rerun")
354 (synopsis "Run tests by filtering the test tree")
355 (description "This package adds the ability to run tests by filtering the
356 test tree based on the result of a previous test run. You can use this to run
357 only those tests that failed in the last run, or to only run the tests that have
358 been added since previous test run.")
359 (license license:bsd-3)))
361 (define-public ghc-tasty-expected-failure
363 (name "ghc-tasty-expected-failure")
368 (uri (string-append "https://hackage.haskell.org/package/"
369 "tasty-expected-failure/tasty-expected-failure-"
373 "0zlgxs24d54byfhvwdg85xk1572zpjs71bjlxxrxcvralrfcq1yb"))))
374 (build-system haskell-build-system)
375 (arguments `(#:tests? #f)) ; TODO: Loops.
377 ; `(("ghc-tasty-hunit" ,ghc-tasty-hunit)
378 ; ("ghc-tasty-golden" ,ghc-tasty-golden)
379 ; ("ghc-hedgehog" ,ghc-hedgehog)
380 ; ("ghc-tasty-hedgehog" ,ghc-tasty-hedgehog)))
382 (list ghc-tagged ghc-tasty ghc-unbounded-delays))
383 (home-page "https://github.com/nomeata/tasty-expected-failure")
384 (synopsis "Mark tasty tests as failure expected")
386 "With the function @code{Test.Tasty.ExpectedFailure.expectFail} in the
387 provided module @code{Test.Tasty.ExpectedFailure}, you can mark that you
388 expect test cases to fail, and not to pass. This can be used for test-driven
390 (license license:expat)))
392 (define-public ghc-quickcheck-instances
394 (name "ghc-quickcheck-instances")
400 "https://hackage.haskell.org/package/"
401 "quickcheck-instances/quickcheck-instances-"
405 "0ihqbarl2ddrfgq3mq09lswwn8213qpw13g49qxs5mjkcm6gbk3h"))))
406 (build-system haskell-build-system)
409 ("2" "1lsa3pbg4ljlk29fhm3mdklnx3hwffyga1nr5krbpcyc3ywq8fq8")))
411 (list ghc-case-insensitive
414 ghc-integer-logarithms
423 ghc-transformers-compat
424 ghc-unordered-containers
427 (home-page "https://github.com/aslatter/qc-instances")
428 (synopsis "Common quickcheck instances")
429 (description "This package provides QuickCheck instances for types
430 provided by the Haskell Platform.")
431 (license license:bsd-3)))
433 (define-public ghc-quickcheck-unicode
435 (name "ghc-quickcheck-unicode")
441 "https://hackage.haskell.org/package/quickcheck-unicode/"
442 "quickcheck-unicode-" version ".tar.gz"))
445 "0s43s1bzbg3gwsjgm7fpyksd1339f0m26dlw2famxwyzgvm0a80k"))))
446 (build-system haskell-build-system)
447 (inputs (list ghc-quickcheck))
449 "https://github.com/bos/quickcheck-unicode")
450 (synopsis "Generator functions Unicode-related tests")
451 (description "This package provides generator and shrink functions for
452 testing Unicode-related software.")
453 (license license:bsd-3)))
455 (define-public ghc-quickcheck-io
457 (name "ghc-quickcheck-io")
463 "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-"
468 "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv"))))
469 (build-system haskell-build-system)
471 (list ghc-quickcheck ghc-hunit))
473 "https://github.com/hspec/quickcheck-io#readme")
474 (synopsis "Use HUnit assertions as QuickCheck properties")
475 (description "This package provides an orphan instance that allows you to
476 use HUnit assertions as QuickCheck properties.")
477 (license license:expat)))
479 (define-public ghc-quickcheck
481 (name "ghc-quickcheck")
487 "https://hackage.haskell.org/package/QuickCheck/QuickCheck-"
492 "1wrnrm9sq4s0bly0q58y80g4153q45iglqa34xsi2q3bd62nqyyq"))))
493 (build-system haskell-build-system)
495 (list ghc-random ghc-splitmix-bootstrap))
496 (home-page "https://github.com/nick8325/quickcheck")
497 (synopsis "Automatic testing of Haskell programs")
499 "QuickCheck is a library for random testing of program properties. The
500 programmer provides a specification of the program, in the form of properties
501 which functions should satisfy, and QuickCheck then tests that the properties
502 hold in a large number of randomly generated cases. Specifications are
503 expressed in Haskell, using combinators defined in the QuickCheck library.")
504 (license license:bsd-3)))
506 (define-public ghc-quickcheck-assertions
508 (name "ghc-quickcheck-assertions")
513 (uri (string-append "https://hackage.haskell.org/package/"
514 "quickcheck-assertions/"
515 "quickcheck-assertions-" version ".tar.gz"))
517 (base32 "1kyam4cy7qmnizjwjm8jamq43w7f0fs6ljfplwj0ib6wi2kjh0wv"))))
518 (build-system haskell-build-system)
522 (list ghc-ieee754 ghc-pretty-show ghc-quickcheck))
523 (home-page "https://github.com/s9gf4ult/quickcheck-assertions")
524 (synopsis "HUnit-like assertions for QuickCheck")
526 "This Haskell library provides convenient assertions with pretty-printed
527 failure messages for QuickCheck properties, that are similar to those of
529 (license license:lgpl3)))
531 (define-public ghc-test-framework
533 (name "ghc-test-framework")
538 (uri (string-append "https://hackage.haskell.org/package/test-framework/"
539 "test-framework-" version ".tar.gz"))
542 "1hhacrzam6b8f10hyldmjw8pb7frdxh04rfg3farxcxwbnhwgbpm"))))
543 (build-system haskell-build-system)
545 `(#:tests? #f ; FIXME: Tests do not build.
547 ("6" "0wbq9wiaag69nsqxwijzhs5y1hb9kbpkp1x65dvx158cxp8i9w9r")))
549 (list ghc-hunit ghc-quickcheck))
551 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
552 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
553 ("ghc-hostname" ,ghc-hostname)
554 ("ghc-old-locale" ,ghc-old-locale)
555 ("ghc-random" ,ghc-random)
556 ("ghc-regex-posix" ,ghc-regex-posix)
558 ("ghc-libxml" ,ghc-libxml)
559 ("ghc-semigroups" ,ghc-semigroups-bootstrap)))
560 (home-page "https://batterseapower.github.io/test-framework/")
561 (synopsis "Framework for running and organising tests")
563 "This package allows tests such as QuickCheck properties and HUnit test
564 cases to be assembled into test groups, run in parallel (but reported in
565 deterministic order, to aid diff interpretation) and filtered and controlled
566 by command line options. All of this comes with colored test output, progress
567 reporting and test statistics output.")
568 (license license:bsd-3)))
570 (define-public ghc-test-framework-hunit
572 (name "ghc-test-framework-hunit")
577 (uri (string-append "https://hackage.haskell.org/package/"
578 "test-framework-hunit/test-framework-hunit-"
582 "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm"))))
583 (build-system haskell-build-system)
586 ("3" "0i9mlalv7cl1iq43ld5myrnpszq5rxmd79hk495dcb08rglhgl3z")))
588 (list ghc-extensible-exceptions ghc-hunit ghc-test-framework))
589 (home-page "https://batterseapower.github.io/test-framework/")
590 (synopsis "HUnit support for test-framework")
592 "This package provides HUnit support for the test-framework package.")
593 (license license:bsd-3)))
595 (define-public ghc-test-framework-quickcheck2
597 (name "ghc-test-framework-quickcheck2")
602 (uri (string-append "https://hackage.haskell.org/package/"
603 "test-framework-quickcheck2/"
604 "test-framework-quickcheck2-" version ".tar.gz"))
607 "0ngf9vvby4nrdf1i7dxf5m9jn0g2pkq32w48xdr92n9hxka7ixn9"))))
608 (build-system haskell-build-system)
611 ("3" "0mglqfimla4vvv80mg08aj76zf4993wmngqlirh05h8i9nmgv6lh")))
613 (list ghc-extensible-exceptions ghc-quickcheck ghc-random
615 (home-page "https://batterseapower.github.io/test-framework/")
616 (synopsis "QuickCheck2 support for test-framework")
618 "This package provides QuickCheck2 support for the test-framework
620 (license license:bsd-3)))
622 (define-public ghc-test-framework-smallcheck
624 (name "ghc-test-framework-smallcheck")
629 (uri (string-append "https://hackage.haskell.org/package/"
630 "test-framework-smallcheck/"
631 "test-framework-smallcheck-" version ".tar.gz"))
633 (base32 "1xpgpk1gp4w7w46b4rhj80fa0bcyz8asj2dcjb5x1c37b7rw90b0"))))
634 (build-system haskell-build-system)
636 (list ghc-smallcheck ghc-test-framework))
637 (home-page "https://github.com/Bodigrim/smallcheck")
638 (synopsis "SmallCheck support for test-framework")
640 "This package lets programmers use SmallCheck properties in Haskell's
641 test-framework. New projects should use ghc-tasty-smallcheck instead.")
642 (license license:bsd-3)))
644 (define-public ghc-test-framework-th
646 (name "ghc-test-framework-th")
651 (uri (string-append "https://hackage.haskell.org/package/"
652 "test-framework-th-" version "/"
653 "test-framework-th-" version ".tar.gz"))
656 "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b"))))
657 (build-system haskell-build-system)
659 (list ghc-test-framework ghc-language-haskell-extract
660 ghc-haskell-src-exts ghc-regex-posix))
661 (home-page "https://github.com/finnsson/test-generator")
662 (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code
663 using Template Haskell")
664 (description "This library contains two functions:
665 @code{defaultMainGenerator} and @code{testGroupGenerator}.
667 @code{defaultMainGenerator} will extract all functions beginning with
668 @code{case_}, @code{prop_}, or @code{test_} in the module and put them in a
671 @code{testGroupGenerator} is like @code{defaultMainGenerator} but without
672 @code{defaultMain}. It is useful if you need a function for the testgroup
673 \(e.g. if you want to be able to call the testgroup from another module).")
674 (license license:bsd-3)))
676 (define-public ghc-hunit
680 (outputs '("out" "static" "doc"))
684 (uri (string-append "https://hackage.haskell.org/package/HUnit/"
685 "HUnit-" version ".tar.gz"))
688 "1as4sw5y39c3zrmr6sb8zbw74c9gdn4401y0dx45ih7zf6457dxh"))))
689 (build-system haskell-build-system)
691 ;; We cannot use ghc-call-stack there, because it depends on
692 ;; ghc-nanospec, which depends on ghc-hunit.
693 (list ghc-call-stack-boot))
694 (home-page "http://hunit.sourceforge.net/")
695 (synopsis "Unit testing framework for Haskell")
697 "HUnit is a unit testing framework for Haskell, inspired by the
698 JUnit tool for Java.")
699 (license license:bsd-3)))
701 (define-public hspec-discover
703 (name "hspec-discover")
708 (uri (string-append "https://hackage.haskell.org/package/"
709 "hspec-discover/hspec-discover-"
713 "13yzvd3b679skvs1insk4s0wc4zvmz6hs38kc8q0j6vzqq06smqa"))))
714 (build-system haskell-build-system)
716 (list ghc-quickcheck ghc-hspec-meta))
717 (home-page "https://hspec.github.io/")
718 (synopsis "Automatically discover and run Hspec tests")
719 (description "hspec-discover is a tool which automatically discovers and
721 (license license:expat)))
723 (define-public ghc-hspec-core
725 (name "ghc-hspec-core")
730 (uri (string-append "https://hackage.haskell.org/package/hspec-core/"
731 "hspec-core-" version ".tar.gz"))
734 "12k9yp5gznrda449ir60d5wv3xl7nnyffkb5mhfc0svw9f8lxlv1"))))
735 (build-system haskell-build-system)
736 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
744 ghc-hspec-expectations
747 (home-page "https://hspec.github.io/")
748 (synopsis "Testing framework for Haskell")
749 (description "This library exposes internal types and functions that can
750 be used to extend Hspec's functionality.")
751 (license license:expat)))
753 (define-public ghc-hspec-meta
755 (name "ghc-hspec-meta")
760 (uri (string-append "https://hackage.haskell.org/package/hspec-meta/"
761 "hspec-meta-" version ".tar.gz"))
764 "0sfj0n2hy1r8ifysgbcmfdygcd7vyzr13ldkcp0l2ml337f8j0si"))))
765 (build-system haskell-build-system)
771 ghc-hspec-expectations
775 (home-page "https://hspec.github.io/")
776 (synopsis "Version of Hspec to test Hspec itself")
777 (description "This library provides a stable version of Hspec which is
778 used to test the in-development version of Hspec.")
779 (license license:expat)))
781 (define-public ghc-hspec
788 (uri (string-append "https://hackage.haskell.org/package/hspec/"
789 "hspec-" version ".tar.gz"))
792 "0z0lwrmrqkglr78n6k2c36n4h68142bh785ys0x4jaibjshvs6rw"))))
793 (build-system haskell-build-system)
794 (outputs '("out" "static" "doc"))
798 ghc-hspec-expectations
803 (home-page "https://hspec.github.io/")
804 (synopsis "Testing Framework for Haskell")
805 (description "This library provides the Hspec testing framework for
806 Haskell, inspired by the Ruby library RSpec.")
807 (license license:expat)))
809 (define-public ghc-hspec-contrib
811 (name "ghc-hspec-contrib")
815 (uri (string-append "https://hackage.haskell.org/package/"
816 "hspec-contrib/hspec-contrib-"
820 "0hhzxaa3fxz5mk5qcsrnfr98a7bn3szx2ydgr0x9mbqmm1jg06rc"))))
821 (build-system haskell-build-system)
823 (list ghc-hspec-core ghc-hunit ghc-hspec ghc-quickcheck))
825 (list hspec-discover))
826 (home-page "https://hspec.github.io/")
827 (synopsis "Contributed functionality for Hspec")
829 "This package provides contributed Hspec extensions.")
830 (license license:expat)))
832 (define-public ghc-hspec-expectations
834 (name "ghc-hspec-expectations")
839 (uri (string-append "https://hackage.haskell.org/package/"
840 "hspec-expectations/hspec-expectations-"
844 "1vxl9zazbaapijr6zmcj72j9wf7ka1pirrjbwddwwddg3zm0g5l1"))))
845 (build-system haskell-build-system)
846 ;; Tests depend on ghc-nanospec.
847 (arguments '(#:tests? #f))
848 (inputs (list ghc-hunit))
849 (home-page "https://github.com/sol/hspec-expectations")
850 (synopsis "Catchy combinators for HUnit")
851 (description "This library provides catchy combinators for HUnit, see
852 @uref{https://github.com/sol/hspec-expectations#readme, the README}.")
853 (license license:expat)))
855 (define-public ghc-nanospec
857 (name "ghc-nanospec")
862 (uri (string-append "https://hackage.haskell.org/package/"
867 "1rcmhl9bhyfvanalnf1r86wkx6rq6wdvagnw1h011jcnnb1cq56g"))))
868 (build-system haskell-build-system)
870 (list ghc-hspec ghc-silently))
871 (home-page "https://github.com/hspec/nanospec#readme")
872 (synopsis "Lightweight implementation of a subset of Hspec's API")
874 "Nanospec is a lightweight implementation of a subset of Hspec's API with
875 minimal dependencies.")
876 (license license:expat)))
878 (define-public ghc-crypto-cipher-tests
880 (name "ghc-crypto-cipher-tests")
885 (uri (string-append "https://hackage.haskell.org/package/"
886 "crypto-cipher-tests-" version "/"
887 "crypto-cipher-tests-" version ".tar.gz"))
890 "19wqignlq90qwpam01hnmmrxaxh5lkax9l1l6rlbi4a07nvp1dnz"))))
891 (build-system haskell-build-system)
892 (inputs (list ghc-quickcheck
895 ghc-test-framework-quickcheck2
896 ghc-test-framework-hunit
899 ghc-crypto-cipher-types))
900 (home-page "https://github.com/vincenthz/hs-crypto-cipher")
901 (synopsis "Generic cryptography cipher tests for Haskell")
902 (description " This Haskell package contains generic tests for
903 cryptographic ciphers, and is used by the test runners of various Haskell
904 implementations of cryptographic ciphers.")
905 (license license:bsd-3)))
907 (define-public ghc-hedgehog
909 (name "ghc-hedgehog")
915 "https://hackage.haskell.org/package/hedgehog/hedgehog-"
920 "1qsqs8lmxa3wmw228cwi98vvvh9hqbc9d43i1sy2c9igw9xlhfi6"))))
921 (build-system haskell-build-system)
923 (list ghc-ansi-terminal
925 ghc-concurrent-output
927 ;("ghc-exceptions" ,ghc-exceptions)
935 ghc-transformers-base
936 ghc-wl-pprint-annotated))
937 (home-page "https://hedgehog.qa")
938 (synopsis "Property-based testing in the spirt of QuickCheck")
940 "Hedgehog is a property-based testing system, in the spirit of
941 QuickCheck. Hedgehog uses integrated shrinking, so shrinks obey the invariants
942 of generated values by construction.
944 To get started quickly, see the examples:
945 @uref{https://github.com/hedgehogqa/haskell-hedgehog/tree/master/hedgehog-example}")
946 (license license:bsd-3)))
948 (define-public cabal-doctest
950 (name "cabal-doctest")
955 (uri (string-append "https://hackage.haskell.org/package/"
956 "cabal-doctest/cabal-doctest-"
960 "03if74imlhhk7m56nci5f1wclniwqdmwl4hl177040j1gnlac9i0"))))
961 (build-system haskell-build-system)
964 ("2" "05v1awad3d1wvc763xcgvxm4n6n7bs7byc6s14kdbw35zcaddlcb")))
965 (home-page "https://github.com/phadej/cabal-doctest")
966 (synopsis "Setup.hs helper for running doctests")
968 "To properly work, the @code{doctest} package needs plenty of
969 configuration. This library provides the common bits for writing custom
970 @file{Setup.hs} files.")
971 (license license:bsd-3)))
973 (define-public ghc-testing-type-modifiers
975 (name "ghc-testing-type-modifiers")
980 (uri (string-append "https://hackage.haskell.org/package/"
981 "testing-type-modifiers/testing-type-modifiers-"
985 "1wh2n95n39ivv6kbqn42vbzrj8zagsmk6f2al2qj40bg5kgdl2q5"))))
986 (build-system haskell-build-system)
987 (home-page "https://hackage.haskell.org/package/testing-type-modifiers")
988 (synopsis "Data type modifiers for property based testing")
989 (description "Property based testing libraries such as QuickCheck tend to
990 include type modifiers. Most of them are used to quantify over subsets of a
991 type. This library is intended to supply these modifiers to be used by
992 testing libraries, in an effort to make properties more portable between
993 testing frameworks.")
994 (license license:unlicense)))
996 (define-public ghc-testing-feat
998 (name "ghc-testing-feat")
1003 (uri (string-append "https://hackage.haskell.org/package/"
1004 "testing-feat/testing-feat-" version ".tar.gz"))
1007 "1v2qzzpf1s008g7q6q67glf7vbm1pkpq4rc3ii74f4g6vhfx610r"))))
1008 (build-system haskell-build-system)
1010 (list ghc-quickcheck ghc-size-based ghc-testing-type-modifiers
1012 (home-page "https://github.com/JonasDuregard/testing-feat")
1013 (synopsis "Functional Enumeration of Algebraic Types")
1014 (description "Feat (Functional Enumeration of Algebraic Types)
1015 provides enumerations as functions from natural numbers to
1016 values (similar to @code{toEnum} but for any algebraic data type). This
1017 can be used for SmallCheck-style systematic testing, QuickCheck-style
1018 random testing, and hybrids of the two.")
1019 (license license:bsd-3)))
1021 (define-public ghc-inspection-testing
1023 (name "ghc-inspection-testing")
1029 "https://hackage.haskell.org/package/inspection-testing/"
1030 "inspection-testing-" version ".tar.gz"))
1033 "0qz1npyycj4bvyly9xmjbnhw569l52h38gx02rk0r7zhapw83aig"))))
1034 (build-system haskell-build-system)
1036 "https://github.com/nomeata/inspection-testing")
1037 (synopsis "GHC plugin to do inspection testing")
1039 "Some carefully crafted libraries make promises to their users beyond
1040 functionality and performance.
1042 Examples are: Fusion libraries promise intermediate data structures to be
1043 eliminated. Generic programming libraries promise that the generic
1044 implementation is identical to the hand-written one. Some libraries may
1045 promise allocation-free or branch-free code.
1047 Conventionally, the modus operandi in all these cases is that the library
1048 author manually inspects the (intermediate or final) code produced by the
1049 compiler. This is not only tedious, but makes it very likely that some change,
1050 either in the library itself or the surrounding eco-system, breaks the
1051 library's promised without anyone noticing.
1053 This package provides a disciplined way of specifying such properties, and
1054 have them checked by the compiler. This way, this checking can be part of the
1055 regular development cycle and regressions caught early.
1057 See the documentation in \"Test.Inspection\" or the project webpage for more
1058 examples and more information.")
1059 (license license:expat)))
1061 (define-public ghc-quickcheck-classes
1063 (name "ghc-quickcheck-classes")
1069 "https://hackage.haskell.org/package/quickcheck-classes/quickcheck-classes-"
1073 (base32 "19iw15mvb7gws3ljdxqwsbb4pmfc0sfflf8szgmrhiqr3k82mqv2"))))
1074 (build-system haskell-build-system)
1076 (list ghc-quickcheck
1079 ghc-quickcheck-classes-base
1085 (list ghc-base-orphans
1090 ghc-tasty-quickcheck))
1091 (home-page "https://github.com/andrewthad/quickcheck-classes#readme")
1092 (synopsis "QuickCheck common typeclasses")
1094 "This library provides QuickCheck properties to ensure that typeclass
1095 instances adhere to the set of laws that they are supposed to. There are
1096 other libraries that do similar things, such as @code{genvalidity-hspec} and
1097 @code{checkers}. This library differs from other solutions by not introducing
1098 any new typeclasses that the user needs to learn. /Note:/ on GHC < 8.5, this
1099 library uses the higher-kinded typeclasses (@code{Data.Functor.Classes.Show1},
1100 @code{Data.Functor.Classes.Eq1}, @code{Data.Functor.Classes.Ord1}, etc.), but
1101 on GHC >= 8.5, it uses @code{-XQuantifiedConstraints} to express these
1102 constraints more cleanly.")
1103 (license license:bsd-3)))
1105 (define-public ghc-quickcheck-classes-base
1107 (name "ghc-quickcheck-classes-base")
1113 "https://hackage.haskell.org/package/quickcheck-classes-base/quickcheck-classes-base-"
1117 (base32 "16c6gq4cqpkwnq1pzkhm6r7mrwk4an50ha5w77bmiia2qkhla6ch"))))
1118 (build-system haskell-build-system)
1120 (list ghc-quickcheck
1126 (home-page "https://github.com/andrewthad/quickcheck-classes#readme")
1127 (synopsis "QuickCheck common typeclasses from `base`")
1129 "This library is a minimal variant of `quickcheck-classes`
1130 that only provides laws for typeclasses from `base`. The main
1131 purpose of splitting this out is so that `primitive` can depend
1132 on `quickcheck-classes-base` in its test suite, avoiding the
1133 circular dependency that arises if `quickcheck-classes` is used
1134 instead. . This library provides QuickCheck properties to ensure
1135 that typeclass instances adhere to the set of laws that they are
1136 supposed to. There are other libraries that do similar things,
1137 such as `genvalidity-hspec` and `checkers`. This library differs
1138 from other solutions by not introducing any new typeclasses that
1139 the user needs to learn. . /Note:/ on GHC < 8.5, this library
1140 uses the higher-kinded typeclasses ('Data.Functor.Classes.Show1',
1141 'Data.Functor.Classes.Eq1', 'Data.Functor.Classes.Ord1', etc.),
1142 but on GHC >= 8.5, it uses `-XQuantifiedConstraints` to express
1143 these constraints more cleanly.")
1144 (license license:bsd-3)))
1146 (define-public ghc-doctest-lib
1148 (name "ghc-doctest-lib")
1154 "https://hackage.haskell.org/package/doctest-lib/doctest-lib-"
1158 (base32 "1vswam0dhw52dihgnzirh18gqs8rj8h6jd7pl6y1mg2f9f9zmih2"))))
1159 (build-system haskell-build-system)
1160 (home-page "https://hub.darcs.net/thielema/doctest-lib/")
1161 (synopsis "Parts of doctest exposed as library")
1163 "Parts of doctest exposed as library. For use with the doctest-extract utility.")
1164 (license license:expat)))
1166 (define-public ghc-doctest-exitcode-stdio
1168 (name "ghc-doctest-exitcode-stdio")
1174 "https://hackage.haskell.org/package/doctest-exitcode-stdio/doctest-exitcode-stdio-"
1178 (base32 "1g3c7yrqq2mwqbmvs8vkx1a3cf0p0x74b7fnn344dsk7bsfpgv0x"))))
1179 (build-system haskell-build-system)
1181 (list ghc-doctest-lib ghc-quickcheck ghc-semigroups))
1182 (home-page "https://hub.darcs.net/thielema/doctest-exitcode-stdio/")
1183 (synopsis "Run Doctests in a @code{Cabal.Test.exitcode-stdio} environment")
1185 "This package allows on to run Doctests in a Cabal.Test.exitcode-stdio
1187 (license license:bsd-3)))
1189 (define-public ghc-cabal-doctest
1191 (name "ghc-cabal-doctest")
1197 "https://hackage.haskell.org/package/cabal-doctest/cabal-doctest-"
1201 (base32 "03if74imlhhk7m56nci5f1wclniwqdmwl4hl177040j1gnlac9i0"))))
1202 (build-system haskell-build-system)
1205 ("2" "05v1awad3d1wvc763xcgvxm4n6n7bs7byc6s14kdbw35zcaddlcb")))
1206 (home-page "https://github.com/phadej/cabal-doctest")
1207 (synopsis "@file{Setup.hs} helper for Doctests running")
1209 "This package provides helpers for running Doctests in @file{Setup.hs}.")
1210 (license license:bsd-3)))
1212 (define-public ghc-tasty-silver
1214 (name "ghc-tasty-silver")
1220 "https://hackage.haskell.org/package/tasty-silver/tasty-silver-"
1224 (base32 "0nvh2k8iqqkanmp7lpwd3asimyarzisly8wavbdahcxryn0j4xb7"))))
1225 (build-system haskell-build-system)
1227 (list ghc-ansi-terminal
1229 ghc-optparse-applicative
1237 (list ghc-tasty-hunit ghc-silently))
1238 (home-page "https://github.com/phile314/tasty-silver")
1239 (synopsis "Fancy test runner, including support for golden tests")
1241 "This package provides a fancy test runner and support for @dfn{golden
1242 testing}. A golden test is an IO action that writes its result to a file. To
1243 pass the test, this output file should be identical to the corresponding
1244 ``golden'' file, which contains the correct result for the test. The test
1245 runner allows filtering tests using regexes, and to interactively inspect the
1246 result of golden tests.")
1247 (license license:expat)))