<div>I think it also depends on what exactly you&#39;re trying to do. If you&#39;re trying to do client side scripting using Haskell (much the way JS is used currently), that is including a Haskell &quot;script&quot; from some page that&#39;s intended to be executed on the client, you can&#39;t really do that. As Mathijs pointed out there are some projects that can let you use Haskell to generate JavaScript which provides a reasonable measure of safety (in much the same way that the final binary generated from Haskell is still safe even though machine code itself isn&#39;t), although isn&#39;t exactly the same thing. If all you want to do is execute some Haskell code inside of the browser process you could always us FFI to use the C plugin hooks to create a Haskell based plugin. Doing that and using something like hint you could even embed a Haskell &quot;interpreter&quot; inside of the browser, but of course you couldn&#39;t rely on something like that being available on any browser except your own.</div>
<br clear="all">-R. Kyle Murphy<br>--<br>Curiosity was framed, Ignorance killed the cat.<br>
<br><br><div class="gmail_quote">On Mon, Oct 26, 2009 at 03:22, Mathijs Kwik <span dir="ltr">&lt;<a href="mailto:bluescreen303@gmail.com">bluescreen303@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;">
There used to be <a href="http://www.haskell.org/haskellwiki/Yhc/Javascript" target="_blank">http://www.haskell.org/haskellwiki/Yhc/Javascript</a>, which is a great plan, but got abandoned (I think).<br>
I still hope something like that will return some day (and not just for
javascript, I would like to compile haskell to java bytecode or .net).<br><br>For something that&#39;s usable now, have a look at HJScript and HJavaScript.<br>
<br>
Those are low-level libraries allowing you to generate javascript safely in haskell.<br>Low level because they are the bare minimum that javascript has to offer, but you can probably easily build more higher-level constructs on top of it in haskell.<br>

<br>If you need something more stable/complete for now, I advise you to use GWT (Google Web Toolkit). It compiles java source code into javascript, taking care of most browser differences and language oddities, and it has a very nice library to use (also if you don&#39;t use java on the server side. It can create fully independent client-side code). I know, it&#39;s not haskell, but compared to javascript, java is very safe&amp;stable.<br>
<font color="#888888">
<br>Mathijs</font><div><div></div><div class="h5"><br><br><br><br><div class="gmail_quote">On Mon, Oct 26, 2009 at 4:04 AM, Casey Hawthorne <span dir="ltr">&lt;<a href="mailto:caseyh@istar.ca" target="_blank">caseyh@istar.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Is there a way to embed a Haskell interpreter/compiler in a browser.<br>
<br>
I think this would be a safer language than JavaScript.<br>
<font color="#888888"><br>
--<br>
Regards,<br>
Casey<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</font></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br>