pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/hs-safe-exceptions



Module Name:    pkgsrc
Committed By:   pho
Date:           Wed Feb 16 07:43:54 UTC 2022

Added Files:
        pkgsrc/devel/hs-safe-exceptions: DESCR Makefile PLIST buildlink3.mk
            distinfo

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-safe-exceptions/DESCR \
    pkgsrc/devel/hs-safe-exceptions/Makefile \
    pkgsrc/devel/hs-safe-exceptions/PLIST \
    pkgsrc/devel/hs-safe-exceptions/buildlink3.mk \
    pkgsrc/devel/hs-safe-exceptions/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/hs-safe-exceptions/DESCR
diff -u /dev/null pkgsrc/devel/hs-safe-exceptions/DESCR:1.1
--- /dev/null   Wed Feb 16 07:43:54 2022
+++ pkgsrc/devel/hs-safe-exceptions/DESCR       Wed Feb 16 07:43:54 2022
@@ -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
Index: pkgsrc/devel/hs-safe-exceptions/Makefile
diff -u /dev/null pkgsrc/devel/hs-safe-exceptions/Makefile:1.1
--- /dev/null   Wed Feb 16 07:43:54 2022
+++ pkgsrc/devel/hs-safe-exceptions/Makefile    Wed Feb 16 07:43:54 2022
@@ -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"
Index: pkgsrc/devel/hs-safe-exceptions/PLIST
diff -u /dev/null pkgsrc/devel/hs-safe-exceptions/PLIST:1.1
--- /dev/null   Wed Feb 16 07:43:54 2022
+++ pkgsrc/devel/hs-safe-exceptions/PLIST       Wed Feb 16 07:43:54 2022
@@ -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
Index: pkgsrc/devel/hs-safe-exceptions/buildlink3.mk
diff -u /dev/null pkgsrc/devel/hs-safe-exceptions/buildlink3.mk:1.1
--- /dev/null   Wed Feb 16 07:43:54 2022
+++ pkgsrc/devel/hs-safe-exceptions/buildlink3.mk       Wed Feb 16 07:43:54 2022
@@ -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
Index: pkgsrc/devel/hs-safe-exceptions/distinfo
diff -u /dev/null pkgsrc/devel/hs-safe-exceptions/distinfo:1.1
--- /dev/null   Wed Feb 16 07:43:54 2022
+++ pkgsrc/devel/hs-safe-exceptions/distinfo    Wed Feb 16 07:43:54 2022
@@ -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