From f1e73a5caf4a008b7a225520641cf2d14aa2f9be Mon Sep 17 00:00:00 2001 From: Carlo Holl Date: Wed, 25 Nov 2020 12:16:35 -0800 Subject: gnu: Add ghc-easytest. * gnu/packages/haskell-check.scm (ghc-easytest): New variable Signed-off-by: Leo Famulari --- gnu/packages/haskell-check.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/haskell-check.scm') diff --git a/gnu/packages/haskell-check.scm b/gnu/packages/haskell-check.scm index b5546f97f8..9cef80fca6 100644 --- a/gnu/packages/haskell-check.scm +++ b/gnu/packages/haskell-check.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2018 Arun Isaac ;;; Copyright © 2019 Timothy Sample ;;; Copyright © 2020 John Soo +;;; Copyright © 2020 Carlo Holl ;;; ;;; This file is part of GNU Guix. ;;; @@ -1038,3 +1039,29 @@ (define-public ghc-inspection-testing See the documentation in \"Test.Inspection\" or the project webpage for more examples and more information.") (license license:expat))) + +(define-public ghc-easytest + (package + (name "ghc-easytest") + (version "0.2.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/easytest/easytest-" + version ".tar.gz")) + (sha256 + (base32 + "0gdyawzlw6d15yz7ji599xjgfr0g7l1iq11ffr4aw3j6g3dc6m8i")))) + (build-system haskell-build-system) + (inputs + `(("ghc-async" ,ghc-async) + ("ghc-random" ,ghc-random) + ("ghc-call-stack" ,ghc-call-stack))) + (home-page "https://github.com/joelburget/easytest") + (synopsis "Testing library for Haskell") + (description "EasyTest is a testing toolkit, meant to replace most uses of +QuickCheck, SmallCheck, HUnit, and frameworks like Tasty, etc. Tests can be +written with ordinary Haskell code, with control flow explicit and under +programmer control.") + (license license:expat))) -- cgit v1.2.3