guix-commits
[Top][All Lists]
Advanced

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

293/328: gnu: ghc-stylish-haskell: Fix Cabal dependency constraints.


From: guix-commits
Subject: 293/328: gnu: ghc-stylish-haskell: Fix Cabal dependency constraints.
Date: Sat, 16 Nov 2019 19:33:28 -0500 (EST)

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

commit 1a360000daf2c6912dd453acf7032aa6eb42a639
Author: Timothy Sample <address@hidden>
Date:   Fri Nov 8 21:47:54 2019 -0500

    gnu: ghc-stylish-haskell: Fix Cabal dependency constraints.
    
    * gnu/packages/haskell-xyz.scm (ghc-stylish-haskell): Add a phase that
    updates the Cabal file to allow for newer versions of
    'haskell-src-exts'.
---
 gnu/packages/haskell-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index f352f6b..052162b 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -10367,6 +10367,15 @@ occurrences of a substring (the first in case of 
overlaps) with another.")
           (base32
             "1ls11fdx6snvfx8yykpidz142zzxwi5bazl49hgfqlwx50rqcp7w"))))
     (build-system haskell-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'update-constraints
+           (lambda _
+             (substitute* "stylish-haskell.cabal"
+               (("haskell-src-exts >= 1\\.18   && < 1\\.21,")
+                "haskell-src-exts >= 1.18   && < 1.22,"))
+             #t)))))
     (inputs
       `(("ghc-aeson" ,ghc-aeson)
         ("ghc-file-embed" ,ghc-file-embed)



reply via email to

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