diff options
author | pho <pho@pkgsrc.org> | 2022-02-16 07:43:54 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2022-02-16 07:43:54 +0000 |
commit | ca2eccef13d2f04fc0b26ddab8d64a0811abec47 (patch) | |
tree | 78011694b1d8a41d91b11a18c896e513ebb23939 /devel/hs-safe-exceptions | |
parent | f4af1c55b2ae0a6bc2796c9c60cb9f3130bfcc9e (diff) | |
download | pkgsrc-ca2eccef13d2f04fc0b26ddab8d64a0811abec47.tar.gz |
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 (limited to 'devel/hs-safe-exceptions')
-rw-r--r-- | devel/hs-safe-exceptions/DESCR | 12 | ||||
-rw-r--r-- | devel/hs-safe-exceptions/Makefile | 11 | ||||
-rw-r--r-- | devel/hs-safe-exceptions/PLIST | 19 | ||||
-rw-r--r-- | devel/hs-safe-exceptions/buildlink3.mk | 13 | ||||
-rw-r--r-- | devel/hs-safe-exceptions/distinfo | 5 |
5 files changed, 60 insertions, 0 deletions
diff --git a/devel/hs-safe-exceptions/DESCR b/devel/hs-safe-exceptions/DESCR new file mode 100644 index 00000000000..28bc34cee76 --- /dev/null +++ b/devel/hs-safe-exceptions/DESCR @@ -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 --git a/devel/hs-safe-exceptions/Makefile b/devel/hs-safe-exceptions/Makefile new file mode 100644 index 00000000000..73d7b62046e --- /dev/null +++ b/devel/hs-safe-exceptions/Makefile @@ -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 +COMMENT= Safe, consistent, and easy exception handling +LICENSE= mit + +.include "../../mk/haskell.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/hs-safe-exceptions/PLIST b/devel/hs-safe-exceptions/PLIST new file mode 100644 index 00000000000..4e8a27df76c --- /dev/null +++ b/devel/hs-safe-exceptions/PLIST @@ -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 --git a/devel/hs-safe-exceptions/buildlink3.mk b/devel/hs-safe-exceptions/buildlink3.mk new file mode 100644 index 00000000000..0909cb2b8ad --- /dev/null +++ b/devel/hs-safe-exceptions/buildlink3.mk @@ -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 --git a/devel/hs-safe-exceptions/distinfo b/devel/hs-safe-exceptions/distinfo new file mode 100644 index 00000000000..0e390667ab0 --- /dev/null +++ b/devel/hs-safe-exceptions/distinfo @@ -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 |