[Haskell-beginners] Cabal package with C module main entry point - Bad compile order

Darren Grant dedgrant at gmail.com
Thu Apr 4 01:41:35 CEST 2013


Hi all,

I'm currently attempting to create a cabal Configure build-type package to
create an executable whose main entry point comes from a C file. I've
almost got it working where the Main.hs exports a foreign function that is
called from within the C module's main(), except for the fact that cabal wants
to compile the C file before the hs *_stub.h is generated.

Is there a way to fix this dependency?


Cheers,
Darren

PS- This is related to the old problem of making SDL apps work on OSX.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130403/7f6af14c/attachment-0001.htm>


More information about the Beginners mailing list