[Haskell-cafe] How to get Cabal to spit out a .a library suitable for linking into C/Objective-C

Jason Dagit dagitj at gmail.com
Mon Jan 16 22:32:55 CET 2012


Did you figure out what you need to know?  If not, I would suggest
asking this same question but on StackOverflow (assuming you haven't
already asked there).

Jason


On Mon, Dec 19, 2011 at 2:35 PM, David Pollak
<feeder.of.the.bears at gmail.com> wrote:
> Howdy,
>
> I'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).
>
> I've been
> through http://haskell.org/ghc/docs/6.12.2/html/users_guide/ffi-ghc.html#using-own-main
> and the associated linked, but I'm unable to find out the Cabal incantation
> to output a library that's linkable into my other code.  Any pointers or
> examples would be greatly appreciated.
>
> Thanks,
>
> David
>
> --
> Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro
> Lift, the simply functional web framework http://liftweb.net
> Follow me: http://twitter.com/dpp
> Blog: http://goodstuff.im
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



More information about the Haskell-Cafe mailing list