<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
That would be possible, but wouldn't Template Haskell also be an option?<br>
<br>
Peter<br>
<br>
Martin Lütke wrote:
<blockquote cite="mid:479037CF.5010300@gmx.de" type="cite">
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
Cetin Sert schrieb:
  <blockquote
 cite="mid:!&amp;!AAAAAAAAAAAYAAAAAAAAAH0sVPcl5mpPvFcphP8VJerCgAAAEAAAAEb9J3WS6g9Isi5e+7ZpybkBAAAAAA==@gmail.com"
 type="cite">
    <meta http-equiv="Content-Type" content="text/html; ">
    <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
    <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
    <div class="Section1">
    <p class="MsoNormal"><span lang="EN-US">As a .NET (C#/F#)
programmer
learning
Haskell, I would love to know the best online sources about run-time
compilation etc. like Reflection.Emit in .NET. I am making heavy use of
this
.NET API to compile customized (regular-expressions-) FSAs at run-time
and want
to learn how I might achieve the same in Haskell. Book or online
article
references specific to this issue will be highly appreciated ^_^<o:p></o:p></span></p>
    </div>
  </blockquote>
I am not familiar with C# but I think what you looking for is the GHC
api which allows you to compile haskell expressions at runtime. Look
for metaplug on hackage
(<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/metaplug-0.1.1">http://hackage.haskell.org/cgi-bin/hackage-scripts/package/metaplug-0.1.1</a>).<br>
In its source you ll find an example on how to use the api. You may of
course use metaplug itself. I must warn you though that the GHC api is
not the best documented and maintained. Currently (ghc 6.8.1) f.i. it
seems that reloading modules is broken.<br>
The most official docu is here: 
  <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://www.haskell.org/haskellwiki/GHC/As_a_library">http://www.haskell.org/haskellwiki/GHC/As_a_library</a>.<br>
  <br>
regards,<br>
Martin<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Haskell-Cafe mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a>
  </pre>
</blockquote>
<br>
</body>
</html>