devel/hs-enclosed-exceptions 1.0.3nb7 NetBSD
Catching all exceptions from within an enclosed computation
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel
- Package size
- 54.6 KiB, 279.1 KiB installed
Description
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.
Install
Binary package:
pkgin install hs-enclosed-exceptions
From pkgsrc:
cd /usr/pkgsrc/devel/hs-enclosed-exceptions && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.0.3nb7 |
| NetBSD 10.1 aarch64 | 1.0.3nb7 |
| SmartOS / illumos x86_64 | 1.0.3nb7 |
| macOS 15 arm64 | 1.0.3nb7 |