BSD Ports

devel/hs-safe-exceptions 0.1.7.4nb5 NetBSD

Safe, consistent, and easy exception handling

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel
Package size
127.5 KiB, 1387.3 KiB installed

Description

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

Install

Binary package:

pkgin install hs-safe-exceptions

From pkgsrc:

cd /usr/pkgsrc/devel/hs-safe-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.

RepositoryVersion
NetBSD 10.1 x86_640.1.7.4nb5
NetBSD 10.1 aarch640.1.7.4nb5
SmartOS / illumos x86_640.1.7.4nb5
macOS 15 arm640.1.7.4nb5

Dependencies

Run dependencies 1