@hackage haskell-src-exts-qq0.1
A quasiquoter for haskell-src-exts.
Categories
License
BSD-3-Clause
Maintainer
Mathieu Boespflug <mboes@tweag.net>
Links
Versions
Installation
Dependencies (4)
- base >=4 && <5
- haskell-src-exts ==1.8.2
- syb
- template-haskell Show all…
Dependents (4)
@hackage/global, @hackage/acme-everything, @hackage/dedukti, @hackage/jmacro
Allows one to write programs that generate Haskell programs much more concisely and legibly. This package supports:
Antiquotations, denoted by stealing the splice syntax of Template Haskell, for example
[hs| $x ++ $(Hs.strE "bar") |]. Splices may not nested.Antiquoting names in patterns. Names that are antiquoted appear surrounded by double parentheses. For instance:
let f = Hs.name "foo" in [hs| ((f)) x = x + x |]