Calling Haskell from Python / C++

Peter Simons
13 Nov 2002 11:07:22 +0100

Simon Peyton-Jones writes:

 > If Python uses C's calling convention, it might be easy; just use
 > 'foreign import' and 'foreign export' (see the FFI spec at

I remember reading that the main program, that wants to call Haskell
code, would have to be compiled with a special Haskell main() routine,
though? Is that true? And if, why is that necessary?