Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Frederick Ross <madhadron <at> gmail.com>
Subject: A library for serial ports
Newsgroups: gmane.comp.lang.haskell.general
Date: Wednesday 3rd June 2009 07:35:57 UTC (over 8 years ago)
I've just uploaded serial-0.1, a library for line-oriented interaction
with serial ports on POSIX compatible systems, to Hackage:

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/serial

At the moment it's just two modules, one of which wraps up the serial
connection in a convenience function (System.Serial), and the other
(System.Serial.Manager) which further wraps a serial connection in a
set of functions to let multiple commands go to a non-blocking device
on the far end of the port and, with the proper parsers and a little
luck, get the responses sent back to all the right calling functions.

The interface is not final yet.  I'm using Parsec parsers passed with
the command to sort out where return values should go, and that may
just become predicates later.  Also, if someone who actually knows
anything about programming on Windows wants to add that capability,
I'd be thrilled.

-- 
Frederick Ross
Doctorant, SV/GHI/UPKIN, EPFL
Graduate Fellow, The Rockefeller University
 
CD: 4ms