Sat Feb 26 12:28:47 2022 UTC ()
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.


(pho)
diff -r0 -r1.1 pkgsrc/devel/hs-enclosed-exceptions/DESCR
diff -r0 -r1.1 pkgsrc/devel/hs-enclosed-exceptions/Makefile
diff -r0 -r1.1 pkgsrc/devel/hs-enclosed-exceptions/PLIST
diff -r0 -r1.1 pkgsrc/devel/hs-enclosed-exceptions/buildlink3.mk
diff -r0 -r1.1 pkgsrc/devel/hs-enclosed-exceptions/distinfo

File Added: pkgsrc/devel/hs-enclosed-exceptions/DESCR
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.

File Added: pkgsrc/devel/hs-enclosed-exceptions/Makefile
# $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
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"

File Added: pkgsrc/devel/hs-enclosed-exceptions/PLIST
@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

File Added: pkgsrc/devel/hs-enclosed-exceptions/buildlink3.mk
# $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

File Added: pkgsrc/devel/hs-enclosed-exceptions/distinfo
$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