[Haskell-cafe] ANNOUNCE: antiquoter-0.1.0.0

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].

Lars

[1]:http://hackage.haskell.org/package/antiquoter
[2]:
http://hackage.haskell.org/packages/archive/language-c-quote/0.7.1/doc/html/src/Language-C-Quote-Base.html
[3]:
http://hackage.haskell.org/packages/archive/antiquoter/0.1.0.0/doc/html/Language-Haskell-AntiQuoter-ExpPat.html
[4]:https://github.com/Laar/antiquoter
-------------- 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