Ian, This one is challenging.
http://www.totalphase.com/products/beagle-i2cspi/ I wrote a wrapper, and could not make c2hs generate a compilable wrapper and had to doctor the generated code that handles arrays. Mine also only covers I2C and not SPI/GPIO. So it is limping. I would be happy to give out my attempt at it. There are dlls for Mac, Linux, and Windows. I can loan a Beagle a slave to help. Mike On Apr 27, 2015, at 7:56 AM, Ian Ross <i...@skybluetrades.net> wrote: > Dear All, > > One of the things that C2HS is lacking is a good tutorial. So I’m going to > write one (or try to, anyway). > > To make this as useful as possible, I’d like to base a large part of the > tutorial on a realistic case study of producing Haskell bindings to a C > library. My current plan is to break the tutorial into three parts: the > basics, the case study and “everything else”, for C2HS features that don’t > get covered in the first two parts. To make this even more useful, I’d like > to base the case study on a C library that someone actually cares about and > wants Haskell bindings for. > > So, this is an open offer to anyone who has a suitable C library they'd like > Haskell bindings for -- let me know, I'll pick one to use and the lucky > winner will end up with Haskell bindings for at least a "useful" portion of > the library in question. Some requirements are listed here: > http://www.skybluetrades.net/blog/posts/2015/04/27/c2hs-tutorial-request.html > > Also, if you have any topics you'd particularly like to have covered in a > tutorial, let me know about that too! > > Cheers, > > Ian. > > -- > Ian Ross Tel: +43(0)6804451378 i...@skybluetrades.net > www.skybluetrades.net > _______________________________________________ > C2hs mailing list > C2hs@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/c2hs
_______________________________________________ C2hs mailing list C2hs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/c2hs