<span class="gmail_quote"></span><span class="q">On 8/25/07, <b class="gmail_sendername">Henk-Jan van Tuyl</b> &lt;<a href="mailto:hjgtuyl@chello.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">hjgtuyl@chello.nl
</a>&gt; wrote:</span><div><span class="q"><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>The easiest way to run Haskell software from a C program is to give the<br>shell command:<br>&nbsp;&nbsp; runhaskell Foo.hs</blockquote></span><div><br>I&#39;m a newbie but not that new :) I really have to be able to interpret the Haskell from within the same process. 
<br><br></div><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">A more advanced way is, to link Haskell libraries by means of the foreign
<br>function interface (FFI) [1].
<br>There are several tools to support FFI development [2]. I am sure my list<br>of URL&#39;s is not complete.<br><br>[1] <a href="http://www.cse.unsw.edu.au/%7Echak/haskell/ffi/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.cse.unsw.edu.au/~chak/haskell/ffi/
</a><br>&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.haskell.org/haskellwiki/FFI_Introduction" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.haskell.org/haskellwiki/FFI_Introduction</a><br>&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.haskell.org/haskellwiki/FFI_cook_book" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.haskell.org/haskellwiki/FFI_cook_book
</a><br><br>[2] <a href="http://www.haskell.org/haskellwiki/FFI_imports_packaging_utility" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.haskell.org/haskellwiki/FFI_imports_packaging_utility
</a><br>&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.haskell.org/haskellwiki/HSFFIG" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.haskell.org/haskellwiki/HSFFIG
</a></blockquote></span><div><br>My understanding is that FFI helps you
to call into other languages from Haskell and vice-versa. I will
definitely need this, but what I can&#39;t figure out how to do is to
invoke the ghci or hugs interpreter programmatically, in-process. I
didn&#39;t see a way to do that in the links you listed, am I missing
something?
<br>&nbsp;</div></div>Much thanks,<br><span class="sg">Brock Peabody<br>
</span>