Cabal package with C module main entry point - Bad compile order

3 Apr
2013
3 Apr
'13
7:41 p.m.
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.
4430
Age (days ago)
4430
Last active (days ago)
0 comments
1 participants
participants (1)
-
Darren Grant