The haskell-src-exts-qq package

[Tags:bsd3, library]

Allows one to write programs that generate Haskell programs much more concisely and legibly. This package supports:

 let x = Hs.name "n" in [hs| \ ((x)) -> $(Hs.Var (Hs.UnQual x)) + 1 |]
 let f = "incr"
     fE = Hs.Var $ Hs.UnQual $ Hs.name f
 in [hs| let __f__ x = x + 1 in $fE 10 |]

We need three different syntaxes for antiquotations, because we do not extend the haskell-src-exts parser in any way and the Template Haskell splicing syntax is only available in expression contexts.

Properties

Versions 0.1, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.7
Dependencies base (==4.*), haskell-src-exts (>=1.9.0), haskell-src-meta (>=0.3), syb, template-haskell [details]
License BSD3
Author Mathieu Boespflug
Maintainer Mathieu Boespflug <mboes@tweag.net>
Stability Unknown
Category Language
Source repository head: git clone git://github.com/mboes/haskell-src-exts-qq
Uploaded Wed Jan 4 22:48:34 UTC 2012 by MathieuBoespflug
Distributions NixOS:0.7
Downloads 2868 total (26 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees