<div dir="ltr">Related to Karl&#39;s Template Haskell suggestion you could also have a look at quasiquotation:<div><br></div><div><a href="http://www.haskell.org/haskellwiki/Quasiquotation">http://www.haskell.org/haskellwiki/Quasiquotation</a><br>

</div><div><br></div><div>The GHC documentation has an example of a expression quoter:</div><div><br></div><div><a href="http://www.haskell.org/ghc/docs/latest/html/users_guide/template-haskell.html#th-quasiquotation">http://www.haskell.org/ghc/docs/latest/html/users_guide/template-haskell.html#th-quasiquotation</a><br>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 June 2013 22:22, Karl Voelker <span dir="ltr">&lt;<a href="mailto:ktvoelker@gmail.com" target="_blank">ktvoelker@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"><div dir="ltr"><div class="im">On Sun, Jun 23, 2013 at 6:36 AM, TP <span dir="ltr">&lt;<a href="mailto:paratribulations@free.fr" target="_blank">paratribulations@free.fr</a>&gt;</span> wrote:<br>

</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
In a more general way, let us suppose I have a Haskell library able to<br>
perform some calculations: how to use it in a pre-processing step, before<br>
compilation of the executable?</blockquote><div><br></div></div><div>You are looking for Template Haskell.</div><div><br></div><div><a href="http://www.haskell.org/haskellwiki/Template_Haskell" target="_blank">http://www.haskell.org/haskellwiki/Template_Haskell</a><br>


</div><div><br></div><div>I&#39;m not sure how up-to-date the wiki is, but it should give you the general idea.</div><div><br></div><div>-Karl V.</div></div></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></div>