From b1e90b241d1e43201166bf08d1111b258b817ece Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 26 Jan 2020 10:45:30 -0800 Subject: [PATCH 14/34] gnu: Add ghc-cabal-doctest. * gnu/packages/haskell-check.scm (ghc-cabal-doctest): New variable. --- gnu/packages/haskell-check.scm | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/gnu/packages/haskell-check.scm b/gnu/packages/haskell-check.scm index 7942f2019a..98b7617520 100644 --- a/gnu/packages/haskell-check.scm +++ b/gnu/packages/haskell-check.scm @@ -944,7 +944,7 @@ To get started quickly, see the examples: (description "To properly work, the @code{doctest} package needs plenty of configuration. This library provides the common bits for writing custom -@file{Setup.hs} files.") +@code{Setup.hs} files.") (license license:bsd-3))) (define-public ghc-testing-type-modifiers @@ -996,3 +996,29 @@ values (similar to @code{toEnum} but for any algebraic data type). This can be used for SmallCheck-style systematic testing, QuickCheck-style random testing, and hybrids of the two.") (license license:bsd-3))) + +(define-public ghc-cabal-doctest + (package + (name "ghc-cabal-doctest") + (version "1.0.8") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/cabal-doctest/cabal-doctest-" + version + ".tar.gz")) + (sha256 + (base32 + "03if74imlhhk7m56nci5f1wclniwqdmwl4hl177040j1gnlac9i0")))) + (build-system haskell-build-system) + (home-page + "https://github.com/phadej/cabal-doctest") + (synopsis + "Setup.hs helper for doctests running") + (description + "Currently (beginning of 2017), there isn't cabal doctest command. Yet, +to properly work doctest needs plenty of configuration. This library provides +the common bits for writing custom Setup.hs.") + (license license:bsd-3))) + -- 2.25.0