BSD Ports

devel/hs-managed 1.0.10nb5 NetBSD

Monad for managed values

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

Description

In Haskell you very often acquire values using the with... idiom using functions of type (a -> IO r) -> IO r. This idiom forms a Monad, which is a special case of the ContT monad (from transformers) or the Codensity monad (from kan-extensions). The main purpose behind this package is to provide a restricted form of these monads specialized to this unusually common case.

The reason this package defines a specialized version of these types is to: * be more beginner-friendly, * simplify inferred types and error messages, and: * provide some additional type class instances that would otherwise be orphan instances

Install

Binary package:

pkgin install hs-managed

From pkgsrc:

cd /usr/pkgsrc/devel/hs-managed && 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_641.0.10nb5
NetBSD 10.1 aarch641.0.10nb5
SmartOS / illumos x86_641.0.10nb5
macOS 15 arm641.0.10nb5

Dependencies

Run dependencies 1
Required by 1