[Haskell-cafe] Calling Haskell from other languages?

Don Stewart dons at galois.com
Tue Nov 11 14:39:37 EST 2008


colin:
> >>>>> "Jake" == Jake Mcarthur <jake at pikewerks.com> writes:
> 
>     Jake> Actually, that's not the whole story. I didn't realize until
>     Jake> I sent it. There does exist good documentation for this, I
>     Jake> promise.
> 
> Good. Let me know where it is when you track it down.
> 
> The link you pointed me too doesn't seem to address my question
> directly. Also, it only talks about C.
> 
> If I want to call Haskell (and I do, perhaps) from another
> garbage-collected language (Eiffel, in particular) using C as the
> mutually understood language, am I not going to run into big problems?

No, you can manage objects via e.g. ForeignPtr's. The community
has a whole has done bridges between Haskell and pretty much anything
you care to name, via the C FFI. Just depends on how well you understand
the memory management models of both players.

-- Don


More information about the Haskell-Cafe mailing list