<div class="gmail_quote">Hi David,</div><div class="gmail_quote"> </div><div class="gmail_quote">On 20 January 2012 22:34, David Pollak <span dir="ltr">&lt;<a href="mailto:feeder.of.the.bears@gmail.com">feeder.of.the.bears@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="gmail_quote"><div class="im">On Mon, Jan 16, 2012 at 1:32 PM, Jason Dagit <span dir="ltr">&lt;<a href="mailto:dagitj@gmail.com" target="_blank">dagitj@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Did you figure out what you need to know?</blockquote><div><br></div></div><div>Sadly, no.</div><div class="im"><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
  If not, I would suggest<br>

asking this same question but on StackOverflow (assuming you haven&#39;t<br>
already asked there).<br></blockquote></div></div></blockquote><div> </div><div>I missed this question the first time around. Sorry.</div><div> </div><div>I don&#39;t have a canned answer to your question, but on the wxHaskell team we have recently been working on (ab)using Cabal to produce shared libraries, and almost everything is just as applicable to static libraries. It&#39;s not all working yet, but some of the following pointers might help you to understand how to make Cabal linking configurable.</div>
<div> </div><div><a href="http://wewantarock.wordpress.com/2010/11/03/building-a-shared-library-in-cabal/">http://wewantarock.wordpress.com/2010/11/03/building-a-shared-library-in-cabal/</a></div><div><a href="http://sourceforge.net/mailarchive/message.php?msg_id=28520475">http://sourceforge.net/mailarchive/message.php?msg_id=28520475</a></div>
<div><a href="http://sourceforge.net/mailarchive/message.php?msg_id=28665900">http://sourceforge.net/mailarchive/message.php?msg_id=28665900</a></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="gmail_quote"><div class="im"><div></div></div><div>Great suggestion.  Thanks!</div><div><div class="h5"><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">

<div><div>On Mon, Dec 19, 2011 at 2:35 PM, David Pollak<br>
&lt;<a href="mailto:feeder.of.the.bears@gmail.com" target="_blank">feeder.of.the.bears@gmail.com</a>&gt; wrote:<br>
&gt; Howdy,<br>
&gt;<br>
&gt; I&#39;m trying to figure out how to get Cabal configured to compile and link my<br>
&gt; Haskell code such that the code can be part of C and/or Objective-C code<br>
&gt; such that all the Haskell dependencies are rolled into a .a file and can be<br>
&gt; linked by a normal C linker (e.g., ld).<br>
&gt;<br>
&gt; I&#39;ve been<br>
&gt; through <a href="http://haskell.org/ghc/docs/6.12.2/html/users_guide/ffi-ghc.html#using-own-main" target="_blank">http://haskell.org/ghc/docs/6.12.2/html/users_guide/ffi-ghc.html#using-own-main</a><br>
&gt; and the associated linked, but I&#39;m unable to find out the Cabal incantation<br>
&gt; to output a library that&#39;s linkable into my other code.  Any pointers or<br>
&gt; examples would be greatly appreciated.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; David<br></div></div></blockquote></div></div></div></blockquote><div> </div><div>Best regards</div><div>Jeremy </div></div>