I've been working on integrating haskell code with some Objective-C/C++ Cocoa Mac OS X applications. Nothing fancy like a Haskell/Cocoa bridge. Just trying to get the build process smooth. The default cabal build system was incomplete to do this effectively;* Extending XCode was no good either. With some effort I created some Cabal build hooks to fix up the behavior of build on OS X and add support for packaging an executable into a ".app" package. That's not much, but I packaged it up, plus some extras, into a library in case other projects would like to use it:
<br><a href="http://tothepowerofdisco.com/repo/HaskellLibraries/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://tothepowerofdisco.com/repo/HaskellLibraries/</a> <br><br>Of course, this is all hackish and very incomplete. EG:
<br>* No fat binary support. I only have a PPC Mac and the only fat-binary process usable with GHC I know of requires executing the x86 GHC.<br>* The build hook in MacOSX.Build will only work on the Cabal distributed with GHC
6.6.1 and *completely* replaces the standard GHC build hook.<br>* GHC compiled to use the framework version of GMP installed to /Library/Frameworks is required.<br>* The name is vague...<br>Still, I've used it to add haskell support and replace XCode for building for 3 exisitng Cocoa applications. Maybe somebody else will find it useful as well.
<br><br>-- <br>-Corey O'Connor<br><br>* I neglected to make a good list of why the default Cabal build hook doesn't work.<br>