Subject: [PATCH v2 10/24] gnu: Add ghc-unexceptionalio-trans.

From: Stephen Paul Weber <[email-masked]>
Date: Thu, 13 Jan 2022 21:45:32 -0500

* gnu/packages/haskell-xyz.scm (ghc-unexceptional-trans): New variable.
---
 gnu/packages/haskell-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index cf96ca2633..ebee13023e 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -13615,6 +13615,33 @@ unbounded @code{Integer} type.")
 handled safely, this is what you're left with.")
     (license license:isc)))
 
+(define-public ghc-unexceptionalio-trans
+  (package
+    (name "ghc-unexceptionalio-trans")
+    (version "0.5.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (hackage-uri "unexceptionalio-trans" version))
+        (sha256
+          (base32 "100sfbrpaldz37a176qpfkk1nx5acyh8pchjmb8g5vhzbhyrqniz"))))
+    (build-system haskell-build-system)
+    (inputs (list ghc-unexceptionalio))
+    (arguments
+      `(#:cabal-revision
+        ("1" "0f15n8hqqczwjrcqxwjp2mrd9iycv53sylv407c95nb6d4hw93ci")))
+    (home-page "https://github.com/singpolyma/unexceptionalio-trans")
+    (synopsis "Wrapper around UnexceptionalIO using monad transformers")
+    (description
+      "UnexceptionalIO provides a basic type to witness having caught all
+exceptions you can safely handle.  This library builds on that with
+transformers like ExceptT to provide a more ergonomic tool for many cases.
+It is intended that you use qualified imports with this library.
+
+> import UnexceptionalIO.Trans (UIO)
+> import qualified UnexceptionalIO.Trans as UIO")
+    (license license:isc)))
+
 (define-public ghc-unicode-transforms
   (package
     (name "ghc-unicode-transforms")
-- 
2.30.2