<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi all,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;m currently attempting to create a <span class="" style="background-color:rgb(255,255,204)">cabal</span> Configure build-type <span class="" style="background-color:rgb(255,255,204)">package</span> to create an executable whose main entry point comes from a C file. I&#39;ve almost got it working where the Main.hs exports a foreign function that is called from within the C module&#39;s main(), except for the fact that <span class="" style="background-color:rgb(255,255,204)">cabal</span> wants to compile the C file before the hs *_stub.h is generated.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Is there a way to fix this dependency?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Cheers,<br></div><div style="font-family:arial,sans-serif;font-size:13px">Darren</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">PS- This is related to the old problem of making SDL apps work on OSX.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div></div>