Hi,

I've been reading about the FFI for getting Haskell to communicate with C code (C++ really).

My intention is to handle most of the app - the GUI events in C++ and sending all of the processing logic in Haskell - including a database etc.

Is the FFI the right tool for a situation where, while used extensively, Haskell is more or less there to take in data, like lists and spit out data like vectors etc back to C.

I am looking to get a few test running where I can pass data in an out  of Haskell like vectors of floats.

Also, I noticed on the wiki example:

Haskell start
c_main
I was a little confused by this.  Does Haskell load up first because its a library?  I couldn't figure out where it was being called in the C code or why Haskell loads first.  Not a biggie just a bit of an impediment in understanding how it all works.

Thanks,
Casey


--
Casey James Basichis
Composer - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis@gmail.com
310.387.7540