haskell-check.scm 40 KB

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