pkgsrc-Changes archive

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

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



Module Name:    pkgsrc
Committed By:   pho
Date:           Sat Feb 26 12:28:47 UTC 2022

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

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


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-enclosed-exceptions/DESCR \
    pkgsrc/devel/hs-enclosed-exceptions/Makefile \
    pkgsrc/devel/hs-enclosed-exceptions/PLIST \
    pkgsrc/devel/hs-enclosed-exceptions/buildlink3.mk \
    pkgsrc/devel/hs-enclosed-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-enclosed-exceptions/DESCR
diff -u /dev/null pkgsrc/devel/hs-enclosed-exceptions/DESCR:1.1
--- /dev/null   Sat Feb 26 12:28:47 2022
+++ pkgsrc/devel/hs-enclosed-exceptions/DESCR   Sat Feb 26 12:28:47 2022
@@ -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.
Index: pkgsrc/devel/hs-enclosed-exceptions/Makefile
diff -u /dev/null pkgsrc/devel/hs-enclosed-exceptions/Makefile:1.1
--- /dev/null   Sat Feb 26 12:28:47 2022
+++ pkgsrc/devel/hs-enclosed-exceptions/Makefile        Sat Feb 26 12:28:47 2022
@@ -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"
Index: pkgsrc/devel/hs-enclosed-exceptions/PLIST
diff -u /dev/null pkgsrc/devel/hs-enclosed-exceptions/PLIST:1.1
--- /dev/null   Sat Feb 26 12:28:47 2022
+++ pkgsrc/devel/hs-enclosed-exceptions/PLIST   Sat Feb 26 12:28:47 2022
@@ -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
Index: pkgsrc/devel/hs-enclosed-exceptions/buildlink3.mk
diff -u /dev/null pkgsrc/devel/hs-enclosed-exceptions/buildlink3.mk:1.1
--- /dev/null   Sat Feb 26 12:28:47 2022
+++ pkgsrc/devel/hs-enclosed-exceptions/buildlink3.mk   Sat Feb 26 12:28:47 2022
@@ -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
Index: pkgsrc/devel/hs-enclosed-exceptions/distinfo
diff -u /dev/null pkgsrc/devel/hs-enclosed-exceptions/distinfo:1.1
--- /dev/null   Sat Feb 26 12:28:47 2022
+++ pkgsrc/devel/hs-enclosed-exceptions/distinfo        Sat Feb 26 12:28:47 2022
@@ -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