Hi Henning,<br><br>> I also think that Template Haskell is used too much. Several <br>> things that
are done in existing libraries could be done in plain<br>> Haskell in a
better way. <br><br>Can you give any examples of this? I'm not saying it's not true, I'm just curious as to why you would venture into the realm of TH without a reason.<br><br>/J<br><br><div class="gmail_quote">
On 27 December 2010 08:44, Henning Thielemann <span dir="ltr"><<a href="mailto:lemming@henning-thielemann.de">lemming@henning-thielemann.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
On Mon, 27 Dec 2010, Jonathan Geddes wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
#1 Parse a string at compile-time so that a custom syntax for<br>
representing data can be used. At the extreme, this "data" might even<br>
be an EDSL.<br>
</blockquote>
<br></div>
I think it would be enough, if the compiler could be told to unfold an expression like<br>
parse "text in a domain specific language"<br>
at compile time.<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
#2 Provide instances automatically.<br>
</blockquote>
<br>
<a href="http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/generic-classes.html" target="_blank">http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/generic-classes.html</a><br>
<br>
<br>
I also think that Template Haskell is used too much. Several things that are done in existing libraries could be done in plain Haskell in a better way. For the cases where Template Haskell is really needed, I'd prefer a solution that allows to generate the code before compilation, such that packages with automatically generated code can be run also on compilers that do not support Template Haskell.<div>
<div></div><div class="h5"><br>
<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>
</div></div></blockquote></div><br>