syntax-trees: Convert between different Haskell syntax trees.
Provides an instance that translates haskell-src-exts expression trees into Template Haskell expression trees in a way that depends only on the haskell-src-exts syntax tree and agreement on the pretty-printed representation of Haskell between haskell-src-exts pretty-printer and Template Haskell quotations (as opposed to depending on both TH and haskell-src-exts syntax tree representations).
Instead of converting between data types, haskell-src-exts syntax trees are pretty-printed and wrapped in a TH quotation which is then interpreted as a Haskell program, yielding a TH Exp tree. Free variables in the haskell-src-exts tree are preserved by lifting them to TH splices prior to pretty-printing.
Modules
[Index]
Downloads
- syntax-trees-0.1.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.2 |
---|---|
Dependencies | base (>=3 && <5), haskell-src-exts (>=1.2), hint, mtl, template-haskell, uniplate [details] |
License | BSD-3-Clause |
Author | Dominic Orchard |
Maintainer | dom.orchard@gmail.com |
Category | Language |
Uploaded | by GeorgeGiorgidze at 2010-10-01T10:47:33Z |
Distributions | |
Reverse Dependencies | 2 direct, 1 indirect [details] |
Downloads | 1849 total (8 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |