News for hackers. Stuff that matters.
Re:ARM is now a fully supported target platform for GHC Haskell by danieldk on Monday June 11, 2012 @05:49AM (#4093855)
Fortunately, GHC can build shared libraries on some platforms, which makes it fairly easy to expose Haskell functions to C:

- Using the FFI one can specify foreign exports.

- The runtime and garbage collector can be initialized/deinitialized by adding an object file that uses gcc's constructor/destructor attributes.

- Multiple calls to hs_init (one for each library) are allowed, as long as they are balanced by hs_exits.

- It's ok to have multiple root modules.

Re:ARM is now a fully supported target platform for GHC Haskell by exDM69 on Monday June 11, 2012 @05:57AM (#4093871)
Indeed, the FFI in GHC is one of the best ones out there. It makes it convenient to call C from Haskell and vice versa(!). I wish every language had an FFI and RTS that good!