[Haskell-cafe] Re: Template Haskell

Achim Schneider barsoap at web.de
Tue Oct 21 19:19:14 EDT 2008

Andrew Coppin <andrewcoppin at btinternet.com> wrote:

> If I'm understanding this correctly, Template Haskell is a way to 
> auto-generate repetative Haskell source code.
> The thing that worries me is... if you need to write repetative
> Haskell source code, doesn't that mean that Haskell itself is broken
> in the first place?
If you've merely got repetitive code, use monads or even plain, simple
functions. If you've got something to generate code from, be it an .xml
or directly a direct algorithmic description of an algorithm, use

Imagine generating an HTML combinator library out of the HTML dtd or
generating specialised versions of an n-dimensional A*.

(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.

More information about the Haskell-Cafe mailing list