pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-enclosed-exceptions devel/hs-enclosed-excepti...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/82b49d6b1cf1
branches:  trunk
changeset: 374769:82b49d6b1cf1
user:      pho <pho%pkgsrc.org@localhost>
date:      Sat Feb 26 12:28:47 2022 +0000

description:
devel/hs-enclosed-exceptions: import hs-enclosed-exceptions-1.0.3

The purpose of this module is to allow you to capture all exceptions
originating from within the enclosed computation, while still reacting to
asynchronous exceptions aimed at the calling thread.

This way, you can be sure that the function that calls, for example,
catchAny, will still respond to ThreadKilled or Timeout events raised by
another thread (with throwTo), while capturing all exceptions, synchronous
or asynchronous, resulting from the execution of the enclosed computation.

One particular use case is to allow the safe execution of code from various
libraries (which you do not control), capturing any faults that might
occur, while remaining responsive to higher level events and control
actions.

diffstat:

 devel/hs-enclosed-exceptions/DESCR         |  13 +++++++++++++
 devel/hs-enclosed-exceptions/Makefile      |  14 ++++++++++++++
 devel/hs-enclosed-exceptions/PLIST         |  19 +++++++++++++++++++
 devel/hs-enclosed-exceptions/buildlink3.mk |  17 +++++++++++++++++
 devel/hs-enclosed-exceptions/distinfo      |   5 +++++
 5 files changed, 68 insertions(+), 0 deletions(-)

diffs (88 lines):

diff -r 81ffab77200e -r 82b49d6b1cf1 devel/hs-enclosed-exceptions/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-enclosed-exceptions/DESCR        Sat Feb 26 12:28:47 2022 +0000
@@ -0,0 +1,13 @@
+The purpose of this module is to allow you to capture all exceptions
+originating from within the enclosed computation, while still reacting to
+asynchronous exceptions aimed at the calling thread.
+
+This way, you can be sure that the function that calls, for example,
+catchAny, will still respond to ThreadKilled or Timeout events raised by
+another thread (with throwTo), while capturing all exceptions, synchronous
+or asynchronous, resulting from the execution of the enclosed computation.
+
+One particular use case is to allow the safe execution of code from various
+libraries (which you do not control), capturing any faults that might
+occur, while remaining responsive to higher level events and control
+actions.
diff -r 81ffab77200e -r 82b49d6b1cf1 devel/hs-enclosed-exceptions/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-enclosed-exceptions/Makefile     Sat Feb 26 12:28:47 2022 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2022/02/26 12:28:47 pho Exp $
+
+DISTNAME=      enclosed-exceptions-1.0.3
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Catching all exceptions from within an enclosed computation
+LICENSE=       mit
+
+.include "../../devel/hs-lifted-base/buildlink3.mk"
+.include "../../devel/hs-monad-control/buildlink3.mk"
+.include "../../devel/hs-transformers-base/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 81ffab77200e -r 82b49d6b1cf1 devel/hs-enclosed-exceptions/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-enclosed-exceptions/PLIST        Sat Feb 26 12:28:47 2022 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/26 12:28:47 pho Exp $
+lib/enclosed-exceptions-${PKGVERSION}/${HS_VERSION}/package-description
+lib/enclosed-exceptions-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Exception/Enclosed.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Exception/Enclosed.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Exception/Enclosed.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/Control-Exception-Enclosed.html
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/enclosed-exceptions.haddock
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/enclosed-exceptions-${PKGVERSION}/html/synopsis.png
diff -r 81ffab77200e -r 82b49d6b1cf1 devel/hs-enclosed-exceptions/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-enclosed-exceptions/buildlink3.mk        Sat Feb 26 12:28:47 2022 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/26 12:28:47 pho Exp $
+
+BUILDLINK_TREE+=       hs-enclosed-exceptions
+
+.if !defined(HS_ENCLOSED_EXCEPTIONS_BUILDLINK3_MK)
+HS_ENCLOSED_EXCEPTIONS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-enclosed-exceptions+= hs-enclosed-exceptions>=1.0.3
+BUILDLINK_ABI_DEPENDS.hs-enclosed-exceptions+= hs-enclosed-exceptions>=1.0.3
+BUILDLINK_PKGSRCDIR.hs-enclosed-exceptions?=   ../../devel/hs-enclosed-exceptions
+
+.include "../../devel/hs-lifted-base/buildlink3.mk"
+.include "../../devel/hs-monad-control/buildlink3.mk"
+.include "../../devel/hs-transformers-base/buildlink3.mk"
+.endif # HS_ENCLOSED_EXCEPTIONS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-enclosed-exceptions
diff -r 81ffab77200e -r 82b49d6b1cf1 devel/hs-enclosed-exceptions/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-enclosed-exceptions/distinfo     Sat Feb 26 12:28:47 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/26 12:28:47 pho Exp $
+
+BLAKE2s (enclosed-exceptions-1.0.3.tar.gz) = 58241a2f86369240d7bd17842de4aa6abc7889a5baa31cb7ba78da128b01078c
+SHA512 (enclosed-exceptions-1.0.3.tar.gz) = 68edb501f42f01d8b4bbce374e49295e045650a8b19fdbf527a54458728e61f53c6c6bcfd1613a7169b013a34bd51cbd2ab2c457cf616fbc8c052b98533bde6c
+Size (enclosed-exceptions-1.0.3.tar.gz) = 5748 bytes



Home | Main Index | Thread Index | Old Index