./devel/hs-say, Send textual messages to a Handle in a thread-friendly way

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.1.0.1nb5, Package name: hs-say-0.1.0.1nb5, Maintainer: pkgsrc-users

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


Master sites:

Filesize: 5.792 KB

Version history: (Expand)


CVS history: (Expand)


   2024-05-09 03:32:57 by Masatake Daimon | Files touched by this commit (1137)
Log message:
Recursive revbump after changing the default Haskell compiler
   2024-04-28 22:21:43 by Masatake Daimon | Files touched by this commit (1)
Log message:
devel/hs-say: Fix build with GHC 9.8

This breaks build with the currently default GHC 9.6. Please bear with me
until I switch the default compiler.
   2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141)
Log message:
Revbump all Haskell after updating lang/ghc96
   2023-10-25 20:07:44 by Masatake Daimon | Files touched by this commit (1)
Log message:
devel/hs-say: Fix build with GHC 9.6
   2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988)
Log message:
Bump Haskell packages after updating lang/ghc94
   2022-02-26 04:58:36 by Masatake Daimon | Files touched by this commit (872)
Log message:
Bump all Haskell packages after enabling "split sections" in mk/haskell.mk
   2022-02-24 02:16:25 by Masatake Daimon | Files touched by this commit (5)
Log message:
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