Howdy,<div><br></div><div>I&#39;m trying to figure out how to get Cabal configured to compile and link my Haskell code such that the code can be part of C and/or Objective-C code such that all the Haskell dependencies are rolled into a .a file and can be linked by a normal C linker (e.g., ld).</div>
<div><br></div><div>I&#39;ve been through <a href="http://haskell.org/ghc/docs/6.12.2/html/users_guide/ffi-ghc.html#using-own-main">http://haskell.org/ghc/docs/6.12.2/html/users_guide/ffi-ghc.html#using-own-main</a> and the associated linked, but I&#39;m unable to find out the Cabal incantation to output a library that&#39;s linkable into my other code.  Any pointers or examples would be greatly appreciated.</div>
<div><br></div><div>Thanks,</div><div><br></div><div>David<br clear="all"><div><br></div>-- <br><div>Visi.Pro, Cloud Computing for the Rest of Us <a href="http://visi.pro" target="_blank">http://visi.pro</a></div>Lift, the simply functional web framework <a href="http://liftweb.net" target="_blank">http://liftweb.net</a><div>
Follow me: <a href="http://twitter.com/dpp" target="_blank">http://twitter.com/dpp</a><br>Blog: <a href="http://goodstuff.im" target="_blank">http://goodstuff.im</a><br></div><div><br></div><br>
</div>