<div dir="ltr">Hi guys,<br><br>Any ideas how to integrate Haskell into other software
as scripting engine? Similarly to Python in Blender or GIMP or to
JavaScript in the products from Adobe. Which possibilities we have?<br>
<br>Cheers,<br>Alex.<br><br><div class="gmail_quote">On Wed, Sep 10, 2008 at 10:20 PM, David F. Place <span dir="ltr">&lt;<a href="mailto:d@vidplace.com">d@vidplace.com</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;">
Hi, All.<br>
<br>
I needed to make a batch of edits to some input files after a big change<br>
in my program. &nbsp;Normally, one would choose some scripting language, but<br>
I can&#39;t bear to program in them. &nbsp; The nasty thing about using Haskell<br>
is that giving regexes as string constants sometime requires two levels<br>
of quoting. &nbsp;For instance. (mkRegex &quot;\\\\\\\\&quot;) matches \\.<br>
<br>
To get around that, I put the regexes in the head of a literate program<br>
and let the program gobble itself up. &nbsp;Works great! &nbsp;I think I&#39;ll always<br>
turn to Haskell for my scripting needs now.<br>
<br>
I put the file in the Haskell Pastebin, if you would like to see it.<br>
<br>
<a href="http://hpaste.org/10249" target="_blank">http://hpaste.org/10249</a><br>
<br>
Cheers, David<br>
<br>
<br>
<br>
<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>
</blockquote></div><br></div>