<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'd really rather factor our the template haskell. It does not leave
me feeling good.<br>
<br>
At the specific level, TemplateHaskell doesn't solve the problem of
getting good XML element names. For example with HList lets me
annotate labels with information about whether they are attributes or
elements.<br>
<br>
At the usage level, it does not traverse other modules easily and
forces you to do weird things with code order in order to compile.<br>
<br>
At the concept level, I find it way too hard to think in terms of the
abstract syntax of Haskell. I'd rather be thinking in terms of
application semantics.<br>
<br>
At the implementation level, it forces the generation of standard
accessor names e.g. withFoo for every foo, rather than supporting a
general syntax for access or update.<br>
<br>
-Alex-<br>
<br>
<br>
<br>
Bulat Ziganshin wrote:
<blockquote cite="mid1577880397.20061227170909@gmail.com" type="cite">
<pre wrap="">Hello S.,
Wednesday, December 27, 2006, 2:24:00 AM, you wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Having just done a major refactor of the HAppS HTTP API to make it
much much easier to use, I am now thinking about simplifying the
current boilerplate associated with XML serialization and state
deserialization.
</pre>
</blockquote>
<pre wrap=""><!---->
are you considered using Template Haskell to do it? at least it is used for
automatic generation of class instances for binary serialization
</pre>
</blockquote>
<br>
</body>
</html>