Path to this page:
./
devel/hs-say,
Send textual messages to a Handle in a thread-friendly way
Branch: CURRENT,
Version: 0.1.0.1nb7,
Package name: hs-say-0.1.0.1nb7,
Maintainer: pkgsrc-usersSend 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)
- (2025-03-05) Updated to version: hs-say-0.1.0.1nb7
- (2025-02-02) Updated to version: hs-say-0.1.0.1nb6
- (2024-05-09) Updated to version: hs-say-0.1.0.1nb5
- (2023-11-02) Updated to version: hs-say-0.1.0.1nb4
- (2023-10-09) Updated to version: hs-say-0.1.0.1nb3
- (2023-02-09) Updated to version: hs-say-0.1.0.1nb2
CVS history: (Expand)