pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hs-safe-exceptions devel/hs-safe-exceptions: imp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f8133e15bbe
branches:  trunk
changeset: 374011:7f8133e15bbe
user:      pho <pho%pkgsrc.org@localhost>
date:      Wed Feb 16 07:43:54 2022 +0000

description:
devel/hs-safe-exceptions: import hs-safe-exceptions-0.1.7.2

This package provides additional safety and simplicity versus
Control.Exception by having its functions recognize the difference between
synchronous and asynchronous exceptions. As described below, synchronous
exceptions are treated as recoverable, allowing you to catch and handle
them as well as clean up after them, whereas asynchronous exceptions can
only be cleaned up after. In particular, this library prevents you from
making the following mistakes:

* Catching and swallowing an asynchronous exception
* Throwing an asynchronous exception synchronously
* Throwing a synchronous exception asynchronously
* Swallowing asynchronous exceptions via failing cleanup handlers

diffstat:

 devel/hs-safe-exceptions/DESCR         |  12 ++++++++++++
 devel/hs-safe-exceptions/Makefile      |  11 +++++++++++
 devel/hs-safe-exceptions/PLIST         |  19 +++++++++++++++++++
 devel/hs-safe-exceptions/buildlink3.mk |  13 +++++++++++++
 devel/hs-safe-exceptions/distinfo      |   5 +++++
 5 files changed, 60 insertions(+), 0 deletions(-)

diffs (80 lines):

diff -r 2a7842623122 -r 7f8133e15bbe devel/hs-safe-exceptions/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-safe-exceptions/DESCR    Wed Feb 16 07:43:54 2022 +0000
@@ -0,0 +1,12 @@
+This package provides additional safety and simplicity versus
+Control.Exception by having its functions recognize the difference between
+synchronous and asynchronous exceptions. As described below, synchronous
+exceptions are treated as recoverable, allowing you to catch and handle
+them as well as clean up after them, whereas asynchronous exceptions can
+only be cleaned up after. In particular, this library prevents you from
+making the following mistakes:
+
+* Catching and swallowing an asynchronous exception
+* Throwing an asynchronous exception synchronously
+* Throwing a synchronous exception asynchronously
+* Swallowing asynchronous exceptions via failing cleanup handlers
diff -r 2a7842623122 -r 7f8133e15bbe devel/hs-safe-exceptions/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-safe-exceptions/Makefile Wed Feb 16 07:43:54 2022 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2022/02/16 07:43:54 pho Exp $
+
+DISTNAME=      safe-exceptions-0.1.7.2
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Safe, consistent, and easy exception handling
+LICENSE=       mit
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 2a7842623122 -r 7f8133e15bbe devel/hs-safe-exceptions/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-safe-exceptions/PLIST    Wed Feb 16 07:43:54 2022 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/16 07:43:54 pho Exp $
+lib/safe-exceptions-${PKGVERSION}/${HS_VERSION}/package-description
+lib/safe-exceptions-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Exception/Safe.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Exception/Safe.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Exception/Safe.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/Control-Exception-Safe.html
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/safe-exceptions.haddock
+share/doc/${HS_PLATFORM}/safe-exceptions-${PKGVERSION}/html/synopsis.png
diff -r 2a7842623122 -r 7f8133e15bbe devel/hs-safe-exceptions/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-safe-exceptions/buildlink3.mk    Wed Feb 16 07:43:54 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/16 07:43:54 pho Exp $
+
+BUILDLINK_TREE+=       hs-safe-exceptions
+
+.if !defined(HS_SAFE_EXCEPTIONS_BUILDLINK3_MK)
+HS_SAFE_EXCEPTIONS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-safe-exceptions+=     hs-safe-exceptions>=0.1.7
+BUILDLINK_ABI_DEPENDS.hs-safe-exceptions+=     hs-safe-exceptions>=0.1.7.2
+BUILDLINK_PKGSRCDIR.hs-safe-exceptions?=       ../../devel/hs-safe-exceptions
+.endif # HS_SAFE_EXCEPTIONS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-safe-exceptions
diff -r 2a7842623122 -r 7f8133e15bbe devel/hs-safe-exceptions/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-safe-exceptions/distinfo Wed Feb 16 07:43:54 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/16 07:43:54 pho Exp $
+
+BLAKE2s (safe-exceptions-0.1.7.2.tar.gz) = 11d529b6e2e205ad88cf4cb5b6c1d835bec2f446f07391b144df06492632cf7a
+SHA512 (safe-exceptions-0.1.7.2.tar.gz) = 592cd1b611262a24dc1673ec283059223b47e70a33df22c05ff7222096027afa6358336e6c8e30256a6e40b71d59d59a90021ccd998a8ee6e193aa62d152c5ab
+Size (safe-exceptions-0.1.7.2.tar.gz) = 14152 bytes



Home | Main Index | Thread Index | Old Index