BSD Ports

devel/hs-say 0.1.0.1nb8 NetBSD

Send textual messages to a Handle in a thread-friendly way

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

Description

Send textual messages to a Handle in a thread-friendly way.

The motivation for this package is described in a blog post on Haskell's Missing Concurrency Basics (http://www.snoyman.com/blog/2016/11/haskells-missing-concurrency-basics). The simple explanation is, when writing a line of textual data to a Handle - such as sending some messages t o ther terminal - we'd like to have the following properties:

* Properly handle character encoding settings on the Handle * For reasonably sized messages, ensure that the entire message is written in one chunk to avoid interleaving data with other threads * This includes the trailing newline character * Avoid unnecessary memory allocations and copies * Minimize locking * Provide a simple API

Install

Binary package:

pkgin install hs-say

From pkgsrc:

cd /usr/pkgsrc/devel/hs-say && 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.0.1nb8
NetBSD 10.1 aarch640.1.0.1nb8
SmartOS / illumos x86_640.1.0.1nb8
macOS 15 arm640.1.0.1nb8

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1
Required by 1