BSD Ports

devel/hs-strict 0.5.1nb3 NetBSD

Strict data types and String IO

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
modified-bsd
Categories
devel
Package size
462.5 KiB, 6147.6 KiB installed

Description

This package provides strict versions of some standard Haskell data types (pairs, Maybe and Either). It also contains strict IO operations.

It is common knowledge that lazy datastructures can lead to space-leaks. This problem is particularly prominent, when using lazy datastructures to store the state of a long-running application in memory. One common solution to this problem is to use seq and its variants in every piece of code that updates your state. However a much easier solution is to use fully strict types to store such state values. By "fully strict types" we mean types for whose values it holds that, if they are in weak-head normal form, then they are also in normal form. Intuitively, this means that values of fully strict types cannot contain unevaluated thunks.

Install

Binary package:

pkgin install hs-strict

From pkgsrc:

cd /usr/pkgsrc/devel/hs-strict && 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.5.1nb3
NetBSD 10.1 aarch640.5.1nb3
SmartOS / illumos x86_640.5.1nb3
macOS 15 arm640.5.1nb3

Dependencies

Run dependencies 4