Thanks for all the information, those should help zero in on a workflow.  I&#39;m going to dive into those on tuesday after I hit a deadline.  I have a week coming to roll in the blissful meadows of Haskell.<div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Dec 1, 2012 at 8:39 PM, David Pollak <span dir="ltr">&lt;<a href="mailto:feeder.of.the.bears@gmail.com" target="_blank">feeder.of.the.bears@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
FWIW, I put together this project a while back: <a href="https://github.com/dpp/LispHaskellIPad" target="_blank">https://github.com/dpp/LispHaskellIPad</a> It&#39;s some calls between GHC and iOS.<div><br></div><div>There&#39;s also <a href="https://github.com/visi-lang/visi" target="_blank">https://github.com/visi-lang/visi</a> which has some iOS interactions with Haskell<div>
<div class="h5"><br>
<br><div class="gmail_quote">On Sat, Dec 1, 2012 at 3:43 PM, Luke Iannini <span dir="ltr">&lt;<a href="mailto:lukexipd@gmail.com" target="_blank">lukexipd@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi guys,<br>
<br>
It&#39;s also possible to start the Haskell runtime from within C/C++,<br>
using the hs_init() and hs_exit() functions (you can just call them<br>
each one at startup and shutdown before calling into any Haskell code<br>
that&#39;s been &quot;foreign export&quot;ed), to skip the c_main business.<br>
<br>
See 8.2.1.1 here:<br>
<a href="http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/ffi-ghc.html" target="_blank">http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/ffi-ghc.html</a><br>
<br>
There&#39;s a great chapter in Real World Haskell on exporting and<br>
importing functions to call to and from C/C++:<br>
<a href="http://book.realworldhaskell.org/read/interfacing-with-c-the-ffi.html" target="_blank">http://book.realworldhaskell.org/read/interfacing-with-c-the-ffi.html</a><br>
<br>
For Objective-C, Objective Haskell is an even higher level (and quite<br>
excellent) project for calling to and from Obj-C and converting its<br>
standard data types (NSDictionaries, NSStrings, NSData etc.) into<br>
Haskell&#39;s (Maps, Text, ByteStrings etc.), and vice-versa.<br>
<a href="https://github.com/jspahrsummers/ObjectiveHaskell" target="_blank">https://github.com/jspahrsummers/ObjectiveHaskell</a><br>
<br>
It uses Template Haskell to make importing and exporting extremely<br>
easy and clean, but sadly ghc-ios doesn&#39;t support TH quite yet. I have<br>
an experimental branch that replaces the TH with manually-written<br>
boilerplate but of course it&#39;s a lot messier. I&#39;ll be publishing it<br>
soon anyway : ).<br>
<br>
Cheers<br>
<span><font color="#888888">Luke<br>
</font></span><div><div><br>
On Sat, Dec 1, 2012 at 1:26 PM, Stephen Paul Weber<br>
&lt;<a href="mailto:singpolyma@singpolyma.net" target="_blank">singpolyma@singpolyma.net</a>&gt; wrote:<br>
&gt; Somebody claiming to be Casey Basichis wrote:<br>
&gt;&gt;<br>
&gt;&gt; Is the FFI the right tool for a situation where, while used extensively,<br>
&gt;&gt; Haskell is more or less there to take in data, like lists and spit out<br>
&gt;&gt; data<br>
&gt;&gt; like vectors etc back to C.<br>
&gt;<br>
&gt;<br>
&gt; My current favourite way to do this is to start in Haskell-land and call<br>
&gt; some entry-point function in extern &quot;C&quot; that takes function pointers as<br>
&gt; arguments.  These function pointers become the way that C++ code can call<br>
&gt; back into Haskell-land.<br>
&gt;<br>
&gt; This is what I am using for &lt;<a href="http://github.com/singpolyma/haskades" target="_blank">http://github.com/singpolyma/haskades</a>&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Stephen Paul Weber, @singpolyma<br>
&gt; See &lt;<a href="http://singpolyma.net" target="_blank">http://singpolyma.net</a>&gt; for how I prefer to be contacted<br>
&gt; edition right joseph<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; iPhone mailing list<br>
&gt; <a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/iphone" target="_blank">http://www.haskell.org/mailman/listinfo/iphone</a><br>
<br>
_______________________________________________<br>
iPhone mailing list<br>
<a href="mailto:iPhone@haskell.org" target="_blank">iPhone@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/iphone" target="_blank">http://www.haskell.org/mailman/listinfo/iphone</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>Telegram, Simply Beautiful CMS <a href="https://telegr.am" target="_blank">https://telegr.am</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>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Casey James Basichis<br>Composer - Cartoon Network<br><a href="http://www.caseyjamesbasichis.com" target="_blank">http://www.caseyjamesbasichis.com</a><br><a href="mailto:caseybasichis@gmail.com" target="_blank">caseybasichis@gmail.com</a><br>
310.387.7540<br>
</div>