Short answer: don’t do it! Long answer: As the C++ example from the article on Real World Haskell Chapter 1-2 showed:
By request I have made available the latest snapshots of the SwigSword project (SWORD library with enhanced SWIG bindings) and the projects that made use of it: SwordSharp and SharpCSword. All 3 of these files are now hosted on googlecode. They were initially hosted on source.emptycrate.com before I had to take that site down.
I was recently faced with the following code which is simple but provided the perfect example to practice some Haskell.
Chapter 3 of Real World Haskell is “Defining Types, Streamlining Functions.”
Release 5 of the EmptyCrate Game Engine was just posted. This release addresses a single bug: the drupal Creative Commons Lite 6.x-1.2 module has a function name change that breaks the EmptyCrate Game Engine. As always, check out game.emptycrate.com for examples.
Chapter 1 of Real World Haskell covers the most basic aspects of the language, such as common operators and operator precedence and gives some overviews of aspects of the language.
The book Real World Haskell is receiving some amazing reviews on Amazon, with comments like
In case you find yourself asking where I get the stuff from that I blog about and wondering if I’m just making stuff up; many of the “Nobody Understands C++” articles on this website are inspired by principles found in the book “C++ Coding Standards” by Herb Sutter and Andrei Alexandrescu.