I'll do USB in Haskell - tips?

Hi, I'll need to use a lot of USB at work and, after looking around, it seems there's no general USB code done. 'libusb' and 'openusb' do not seem ready enough so that wrapping them would be easier than writing from scratch. (If you think I am wrong until here and have time to write me your opinion, I'll value it a lot.) So: I would like to (try to) write a good implementation of USB access in Haskell. I would like it to be really general, so that we could use all of USB without need to resort to something else; available to all possible environments and operating systems; allow easy testing of USB clients, maybe using "fake" USB devices that could simulate problems; do that using Haskell code to directly access operating system API. I've read the appropriate chapters of USB 2.0 standard reference. I'll greatly appreciate any information you can give me: sugestions on what would be "the Haskell way" of doing USB; good technical information on how USB is implemented in different OSes; warnings on problems I may have; wishes of good luck :) I hope in one year I'll be able to post a message here saying Haskell is the greatest language to interface with USB devices. Thanks, Maurício

On Tue, Oct 7, 2008 at 01:55, Mauricio
Hi,
I'll need to use a lot of USB at work and, after looking around, it seems there's no general USB code done. 'libusb' and 'openusb' do not seem ready enough so that wrapping them would be easier than writing from scratch. (If you think I am wrong until here and have time to write me your opinion, I'll value it a lot.)
Have a look at libusb version 1.0 API. It looks pretty promising: http://libusb.wiki.sourceforge.net/Libusb1.0 All best Christopher Skrzętnicki

Thanks, Maurício
Hi Maurício, that's good news :-) However I personally would be scared by the amount of work and testing which is needed. I guess I would prefer wiriting some bindings to a nexisting library.. But if you manage to write it I might become a user in the future.. Marc
participants (3)
-
Krzysztof Skrzętnicki
-
Marc Weber
-
Mauricio