th-build: More convenient construction of TH ASTs

[ bsd3, library, template-haskell ] [ Propose Tags ]

The main feature here is implicit conversion of arguments to AST constructors: Tired of writing things like

valD (varP (mkName "foo")) (normalB (appE (varE 'not) (conT 'True))) []

? With th-build:

valD' "foo" (appE' 'not 'True) ()

Hint: Use () for an empty list argument to an autoconverting function, since [] will yield an type ambiguity error.

Versions [faq],,,
Dependencies base (>=4 && <6), template-haskell (== [details]
License BSD-3-Clause
Copyright Daniel Schüssler
Author Daniel Schüssler
Category Template Haskell
Home page
Source repo head: git clone
Uploaded by DanielSchuessler at 2014-06-26T20:25:20Z
Distributions NixOS:
Downloads 2492 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees