16 Aug
2011
16 Aug
'11
5:46 p.m.
On Tue, Aug 16, 2011 at 12:42 PM, Niklas Larsson <metaniklas@gmail.com> wrote:
If you want to call a Haskell function from C you should do a "foreign export" of the function, that will create a stub function with C calling convention that you can call.
I put an example of how to do this on Rosetta Code: http://rosettacode.org/wiki/Use_another_language_to_call_a_function#Haskell -- Chris Wilson <christopher.j.wilson@gmail.com>