From patchwork Fri Jan 14 02:45:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Paul Weber X-Patchwork-Id: 36304 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8C2DA27BBEA; Fri, 14 Jan 2022 02:47:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4DB3527BBE9 for ; Fri, 14 Jan 2022 02:47:26 +0000 (GMT) Received: from localhost ([::1]:41170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8Ccf-0002zy-FR for patchwork@mira.cbaines.net; Thu, 13 Jan 2022 21:47:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8CcL-0002Mz-Tg for guix-patches@gnu.org; Thu, 13 Jan 2022 21:47:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8CcL-0007lx-JQ for guix-patches@gnu.org; Thu, 13 Jan 2022 21:47:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8CcL-0000XU-H9 for guix-patches@gnu.org; Thu, 13 Jan 2022 21:47:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50835] [PATCH v2 10/24] gnu: Add ghc-unexceptionalio-trans. Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Jan 2022 02:47:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50835 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50835@debbugs.gnu.org Cc: Stephen Paul Weber , rg@raghavgururajan.name Received: via spool by 50835-submit@debbugs.gnu.org id=B50835.16421283701812 (code B ref 50835); Fri, 14 Jan 2022 02:47:05 +0000 Received: (at 50835) by debbugs.gnu.org; 14 Jan 2022 02:46:10 +0000 Received: from localhost ([127.0.0.1]:35023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8CbR-0000T3-KZ for submit@debbugs.gnu.org; Thu, 13 Jan 2022 21:46:09 -0500 Received: from singpolyma.net ([192.99.233.116]:47763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8CbJ-0000PV-7Y for 50835@debbugs.gnu.org; Thu, 13 Jan 2022 21:46:02 -0500 Received: by singpolyma.net (Postfix, from userid 1000) id 951CB4861711; Fri, 14 Jan 2022 02:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1642128359; bh=WukWDB4M8SIQqQcE5C2GGIH0sylK7q1TCicr9t2CheE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FNUTiGEGO3/zb8SQtcVRIbf3Cd6yoO5gDDPMeCmA9JMQrTYQ8LBMtKmhmR4FRNmkx b7sElUQoqa4ZiRHxDeEx7mIOF4GzhHL0w8h81VgRxr2p1bqv4gYbws0dONXVrZ3frN BSEdZSd05OFJK2WKhXMZskG+djvxcY/+Ko9eZmkg= From: Stephen Paul Weber Date: Thu, 13 Jan 2022 21:45:32 -0500 Message-Id: <20220114024546.75747-10-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220114024546.75747-1-singpolyma@singpolyma.net> References: <20220114024546.75747-1-singpolyma@singpolyma.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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")