Thu Feb 24 01:16:25 2022 UTC ()
devel/hs-say: import hs-say-0.1.0.1

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


(pho)
diff -r0 -r1.1 pkgsrc/devel/hs-say/DESCR
diff -r0 -r1.1 pkgsrc/devel/hs-say/Makefile
diff -r0 -r1.1 pkgsrc/devel/hs-say/PLIST
diff -r0 -r1.1 pkgsrc/devel/hs-say/buildlink3.mk
diff -r0 -r1.1 pkgsrc/devel/hs-say/distinfo

File Added: pkgsrc/devel/hs-say/DESCR
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

File Added: pkgsrc/devel/hs-say/Makefile
# $NetBSD: Makefile,v 1.1 2022/02/24 01:16:25 pho Exp $

DISTNAME=	say-0.1.0.1
CATEGORIES=	devel

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Send textual messages to a Handle in a thread-friendly way
LICENSE=	mit

.include "../../mk/haskell.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/devel/hs-say/PLIST
@comment $NetBSD: PLIST,v 1.1 2022/02/24 01:16:25 pho Exp $
lib/say-${PKGVERSION}/${HS_VERSION}/package-description
lib/say-${PKGVERSION}/${HS_VERSION}/package-id
lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
lib/${HS_PLATFORM}/${HS_PKGID}/Paths_say.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Paths_say.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Paths_say.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Say.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Say.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Say.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/LICENSE
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/Say.html
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/doc-index.html
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/haddock-bundle.min.js
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/index.html
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/linuwial.css
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/meta.json
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/quick-jump.css
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/say.haddock
share/doc/${HS_PLATFORM}/say-${PKGVERSION}/html/synopsis.png

File Added: pkgsrc/devel/hs-say/buildlink3.mk
# $NetBSD: buildlink3.mk,v 1.1 2022/02/24 01:16:25 pho Exp $

BUILDLINK_TREE+=	hs-say

.if !defined(HS_SAY_BUILDLINK3_MK)
HS_SAY_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.hs-say+=	hs-say>=0.1.0
BUILDLINK_ABI_DEPENDS.hs-say+=	hs-say>=0.1.0.1
BUILDLINK_PKGSRCDIR.hs-say?=	../../devel/hs-say
.endif	# HS_SAY_BUILDLINK3_MK

BUILDLINK_TREE+=	-hs-say

File Added: pkgsrc/devel/hs-say/distinfo
$NetBSD: distinfo,v 1.1 2022/02/24 01:16:25 pho Exp $

BLAKE2s (say-0.1.0.1.tar.gz) = 19204063c2eba9cfcce6f8949e0e7baa4e10932617f4f8673736066a2bf4dc4c
SHA512 (say-0.1.0.1.tar.gz) = 3de9f6b473a3b4403624c3f6aeac3703a5e8b6cfae82578f7a49a81defa9fa64295cd315664d02fbab70646694d34415d638b5b52424d167d44e93b34a917604
Size (say-0.1.0.1.tar.gz) = 5931 bytes