From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7NhT-00016V-Qc for guix-patches@gnu.org; Tue, 02 Oct 2018 12:39:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7NhR-0006Le-RI for guix-patches@gnu.org; Tue, 02 Oct 2018 12:39:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58550) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7NhP-0006L1-R1 for guix-patches@gnu.org; Tue, 02 Oct 2018 12:39:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7NhP-0004a1-Lm for guix-patches@gnu.org; Tue, 02 Oct 2018 12:39:03 -0400 Subject: [bug#32908] [PATCH 18/24] gnu: Add ghc-safe-exceptions. Resent-Message-ID: From: Ricardo Wurmus Date: Tue, 2 Oct 2018 18:38:02 +0200 Message-ID: <20181002163806.5760-3-ricardo.wurmus@mdc-berlin.de> In-Reply-To: <20181002163806.5760-1-ricardo.wurmus@mdc-berlin.de> References: <20181002163255.5304-10-ricardo.wurmus@mdc-berlin.de> <20181002163806.5760-1-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32908@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/haskell.scm (ghc-safe-exceptions): New variable. --- gnu/packages/haskell.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 9bc86bfbd..5d68ddcad 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -11180,4 +11180,37 @@ Haskell value or function.") vector spaces.") (license license:bsd-3))) +(define-public ghc-safe-exceptions + (package + (name "ghc-safe-exceptions") + (version "0.1.7.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/" + "safe-exceptions/safe-exceptions-" + version ".tar.gz")) + (sha256 + (base32 + "0sd0zfsm9pcll5bzzj523rbn45adjrnavdkz52hgmdjjgdcdrk8q")))) + (build-system haskell-build-system) + (arguments + '(#:cabal-revision + ("4" "0fid41gishzsyb47wzxhd5falandfirqcp760hcja81qjpfmqd32"))) + (inputs `(("ghc-exceptions" ,ghc-exceptions))) + (native-inputs + `(("ghc-hspec" ,ghc-hspec) + ("ghc-void" ,ghc-void) + ("hspec-discover" ,hspec-discover))) + (home-page "https://github.com/fpco/safe-exceptions") + (synopsis "Safe, consistent, and easy exception handling") + (description "Runtime exceptions - as exposed in @code{base} by the +@code{Control.Exception} module - have long been an intimidating part of the +Haskell ecosystem. This package is intended to overcome this. It provides a +safe and simple API on top of the existing exception handling machinery. The +API is equivalent to the underlying implementation in terms of power but +encourages best practices to minimize the chances of getting the exception +handling wrong.") + (license license:expat))) + ;;; haskell.scm ends here -- 2.19.0