The select package

[Tags: bsd3, library]

While tinkering on a project, I frequently found myself having to make FFI calls to select(2). This package is an attempt reduce the boilerplate I needed to do that. While at it, I took the opportunity to have what select returns put in a TMVar.

The package has three parts:

System.Posix.IO.Select
just wraps select.
Control.Concurrent.STM.TMVarIO
and Control.Concurrent.MVarIO put the return value of IO actions into a TMVar or an MVar, respectively.
System.Posix.IO.Select.STM
and System.Posix.IO.Select.MVar do the above for select.

NOTE: I feel I'm occupying prime namespace realestate with a package name like select. I'll happily let myself be chased away if anybody else wants to use this package name. Let me know.

CAVEAT: I'm not an experienced Haskeller, and this is my first foray into FFI in general.


Properties

Versions0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.0.1
Dependenciesbase (==4.*), stm, vector
LicenseBSD3
Copyright2012 Gard Spreemann
AuthorGard Spreemann
MaintainerGard Spreemann <gspreemann@gmail.com>
CategorySystem
Home pagehttp://nonempty.org/software/haskell-select
Upload dateTue Apr 10 10:00:27 UTC 2012
Uploaded byGardSpreemann
Downloads668 total (39 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees