Subject: [PATCH 05/12] gnu: Add ghc-pooled-io.

From: Distopico <[email-masked]>
Date: Mon, 24 Jul 2023 15:23:07 -0500

* gnu/packages/haskell-xyz.scm (ghc-pooled-io): New variable.
---
 gnu/packages/haskell-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 4be7bd970c..879d662da6 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -8987,6 +8987,29 @@ (define-public ghc-pipes
 @end itemize")
     (license license:bsd-3)))
 
+(define-public ghc-pooled-io
+  (package
+    (name "ghc-pooled-io")
+    (version "0.0.2.3")
+    (source (origin
+              (method url-fetch)
+              (uri (hackage-uri "pooled-io" version))
+              (sha256
+               (base32
+                "0ysgfwlppilj21sqhbcq7xbyc5hnc26mzb58y7mm9rd5piw3v7mc"))))
+    (build-system haskell-build-system)
+    (properties '((upstream-name . "pooled-io")))
+    (inputs (list ghc-utility-ht ghc-unsafe ghc-concurrent-split))
+    (home-page "https://hub.darcs.net/thielema/pooled-io")
+    (synopsis
+     "Run jobs on a limited number of threads and support data dependencies")
+    (description
+     "This package provide run computations on multiple cores that need to write
+intermediate results to disk.  The functions restrict the number of simultaneously
+running jobs to a user given number or to the number of capabilities the Haskell
+program.")
+    (license license:bsd-3)))
+
 (define-public ghc-pointedlist
   (package
     (name "ghc-pointedlist")
-- 
2.41.0