On Sun, Jun 23, 2013 at 6:36 AM, TP <paratribulations@free.fr> wrote:
In a more general way, let us suppose I have a Haskell library able to
perform some calculations: how to use it in a pre-processing step, before
compilation of the executable?

You are looking for Template Haskell.

http://www.haskell.org/haskellwiki/Template_Haskell

I'm not sure how up-to-date the wiki is, but it should give you the general idea.

-Karl V.