Subject: [bug#38423] [PATCH 03/49] gnu: Add ghc-text-builder.

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

* gnu/packages/haskell-xyz.scm (ghc-text-builder): New package.
---
 gnu/packages/haskell-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index f22c936920..350af5b0c0 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -13208,3 +13208,35 @@ into monoids such as builders and printers.")
 ASCII and Latin-1 portions of the 'Char' and 'Word8'
 data types.")
     (license license:bsd-3)))
+
+(define-public ghc-text-builder
+  (package
+    (name "ghc-text-builder")
+    (version "0.6.5.1") ;; newer than ghc-8.4 lts stackage
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/text-builder/text-builder-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0g40s5md7kfmhqsxxrfliwb3p4whg3m2wp31bai051nx1ddkkvay"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-base-prelude" ,ghc-base-prelude)
+       ("ghc-semigroups" ,ghc-semigroups)))
+    (native-inputs
+     `(("ghc-quickcheck" ,ghc-quickcheck)
+       ("ghc-quickcheck-instances"
+        ,ghc-quickcheck-instances)
+       ("ghc-rerebase" ,ghc-rerebase)
+       ("ghc-tasty" ,ghc-tasty)
+       ("ghc-tasty-hunit" ,ghc-tasty-hunit)
+       ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
+    (home-page
+     "https://github.com/nikita-volkov/text-builder")
+    (synopsis "An efficient strict text builder")
+    (description "")
+    (license license:expat)))
-- 
2.21.0 (Apple Git-122.2)