guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

65/257: gnu: ghc-chell-quickcheck: Allow newer QuickCheck.


From: Ricardo Wurmus
Subject: 65/257: gnu: ghc-chell-quickcheck: Allow newer QuickCheck.
Date: Thu, 27 Sep 2018 15:47:00 -0400 (EDT)

rekado pushed a commit to branch wip-haskell
in repository guix.

commit 488bca99afed92c6684d1e43c139e6cc03f32cce
Author: Timothy Sample <address@hidden>
Date:   Mon Sep 3 22:42:54 2018 -0400

    gnu: ghc-chell-quickcheck: Allow newer QuickCheck.
    
    * gnu/packages/haskell.scm (ghc-chell-quickcheck)[arguments]: Add a phase
    that patches the Cabal file to allow newer versions of QuickCheck.
    (ghc-chell-quickcheck-bootstrap)[arguments]: Ditto.
---
 gnu/packages/haskell.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index c4eee42..1294671 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -7455,7 +7455,14 @@ testing strategies.")
        ("ghc-random" ,ghc-random)
        ("ghc-quickcheck" ,ghc-quickcheck)))
     (arguments
-     `(#:tests? #f))
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'update-constraints
+           (lambda _
+             (substitute* "chell-quickcheck.cabal"
+               (("QuickCheck >= 2\\.3 && < 2\\.11")
+                "QuickCheck >= 2.3 && < 2.12")))))))
     (home-page "https://john-millikin.com/software/chell/";)
     (synopsis "QuickCheck support for the Chell testing library")
     (description "More complex tests for @code{chell}.")
@@ -7475,6 +7482,14 @@ testing strategies.")
         (base32
          "1iicsys9igx7m7n4l2b8djardmjy2ah5ibzp7kzs758h460fq53a"))))
     (build-system haskell-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'update-constraints
+           (lambda _
+             (substitute* "chell-quickcheck.cabal"
+               (("QuickCheck >= 2\\.3 && < 2\\.11")
+                "QuickCheck >= 2.3 && < 2.12")))))))
     (inputs
      `(("ghc-chell" ,ghc-chell)
        ("ghc-chell-quickcheck-bootstrap" ,ghc-chell-quickcheck-bootstrap)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]