diff options
author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2018-10-02 18:38:02 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-10-05 23:59:26 +0200 |
commit | 9ef95a196f5144506eb92e3870de96a180454643 (patch) | |
tree | 3188c2adb3c0eb26bfb421c548f78fa4893b2fa6 /gnu/packages | |
parent | 88189099dff99ecb4912c9c01adb920868049bec (diff) | |
download | guix-9ef95a196f5144506eb92e3870de96a180454643.tar guix-9ef95a196f5144506eb92e3870de96a180454643.tar.gz |
gnu: Add ghc-safe-exceptions.
* gnu/packages/haskell.scm (ghc-safe-exceptions): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/haskell.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 9bc86bfbd3..5d68ddcada 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 |