Subject: [PATCH 37/49] gnu: Add ghc-ranged-sets.

From: Robert Vollmert <[email-masked]>
Date: Fri, 29 Nov 2019 12:37:39 +0100

* gnu/packages/haskell-xyz.scm (ghc-ranged-sets): New variable.
---
 gnu/packages/haskell-xyz.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 1b9db3f519..88dd872b9e 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -14055,3 +14055,32 @@ to bytestring-strict-builder.")
 the location of the failure call.  The location message includes the file name,
 line and column numbers.")
     (license license:bsd-3)))
+
+(define-public ghc-ranged-sets
+  (package
+    (name "ghc-ranged-sets")
+    (version "0.4.0") ;; not stackage LTS 8.4
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/Ranged-sets/Ranged-sets-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1skd2a6yw7dd5vq8x81kwh28gi8sgyzg9qqqyadxmgpvy11sh9ab"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-hunit" ,ghc-hunit)
+       ("ghc-quickcheck" ,ghc-quickcheck)))
+    (home-page
+     "https://github.com/PaulJohnson/Ranged-sets")
+    (synopsis "Ranged sets for Haskell")
+    (description
+     "A ranged set is an ordered list of ranges.
+This allows sets such as all reals x such that:
+(0.25 < x <= 0.75 or 1.4 <= x < 2.3 or 4.5 < x).
+Alternatively you can have all strings s such that:
+(\"F\" <= s < \"G\")")
+    (license license:bsd-3)))
-- 
2.21.0 (Apple Git-122.2)