From ian at skybluetrades.net Mon Apr 27 13:56:17 2015 From: ian at skybluetrades.net (Ian Ross) Date: Mon, 27 Apr 2015 15:56:17 +0200 Subject: [C2hs] Tutorial Ideas? Message-ID: 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 ian at skybluetrades.net www.skybluetrades.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at proclivis.com Tue Apr 28 01:10:46 2015 From: mike at proclivis.com (Michael Jones) Date: Mon, 27 Apr 2015 19:10:46 -0600 Subject: [C2hs] Tutorial Ideas? In-Reply-To: References: Message-ID: 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 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 ian at skybluetrades.net www.skybluetrades.net > _______________________________________________ > C2hs mailing list > C2hs at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/c2hs -------------- next part -------------- An HTML attachment was scrubbed... URL: