Alex Ferguson wrote:
> 
> What's the state of the art as regards calling Haskell functions from
> 'the outside world'?  I note that Haskell Direct has this in its
> manifesto, but says "currently unsupported".  Does that mean a moderate
> size black hole at the centre of something still potentially usable,
> or nothing much at all?
> 
> Sorry if this is an 'RTFM' matter, just not sure at present precisely
> which 'FM'.

Check out the paper about a Foreign Function Interface on the HDirect
web page. It shows how to invoke Haskell from the outside world. This
method seems to work fairly well with GHC 4.02. However, I've never
tried to use Haskell functions in a C program. I've only used C
functions in a Haskell program, where the C function sometimes invokes
callback functions which are defined in Haskell.

Anyway, that's the FM.

Reply via email to