[Haskell-cafe] ANNOUNCE: antiquoter-

L Corbijn aspergesoepje at gmail.com
Wed Apr 3 22:46:00 CEST 2013

Hello cafe,

I'm happy to announce the release of my first package antiquoter [1], a
combinator library for writing quasiquoters and antiquoters. The main aim
is to simplify their definitions and reduce copy-and-paste programming.

The main feature the current version is trying to solve is code duplication
in antiquoters. The problem for writing antiquoters is that it need to be
done twice, once for use as an expression and once for use as a pattern.
These two implementations are very similar, which leads to copy-and-paste
programming. For a good example of what this leads to see the antiquoters
of language-c-quote[2], where almost every antiquoter is written twice. A
very simple example with the rewritten version is provided in the
documentation [3].


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130403/c5ba27e2/attachment.htm>

More information about the Haskell-Cafe mailing list