th-desugar: Functions to desugar Template Haskell
This package provides the Language.Haskell.TH.Desugar module, which desugars Template Haskell's rich encoding of Haskell syntax into a simpler encoding. This desugaring discards surface syntax information (such as the use of infix operators) but retains the original meaning of the TH code. The intended use of this package is as a preprocessor for more advanced code manipulation tools. Note that the input to any of the ds... functions should be produced from a TH quote, using the syntax [| ... |]. If the input to these functions is a hand-coded TH syntax tree, the results may be unpredictable. In particular, it is likely that promoted datatypes will not work as expected.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- th-desugar-1.11.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 1.0.0, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.4.2.1, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.4.1, 1.5.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.13.1, 1.14, 1.15, 1.16, 1.17, 1.18 |
---|---|
Change log | CHANGES.md |
Dependencies | base (>=4.7 && <5), containers (>=0.5), fail (>=4.9 && <4.10), ghc-prim, mtl (>=2.1 && <2.3), ordered-containers (>=0.2.2), semigroups (>=0.16), syb (>=0.4), template-haskell (>=2.9 && <2.17), th-abstraction (>=0.2.11), th-lift (>=0.6.1), th-orphans (>=0.13.7), transformers-compat (>=0.6.3) [details] |
Tested with | ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.3, ghc ==8.10.1 |
License | BSD-3-Clause |
Author | Richard Eisenberg <rae@cs.brynmawr.edu> |
Maintainer | Ryan Scott <ryan.gl.scott@gmail.com> |
Revised | Revision 1 made by ryanglscott at 2022-05-20T00:52:48Z |
Category | Template Haskell |
Home page | https://github.com/goldfirere/th-desugar |
Bug tracker | https://github.com/goldfirere/th-desugar/issues |
Source repo | this: git clone https://github.com/goldfirere/th-desugar.git(tag v1.10) head: git clone https://github.com/goldfirere/th-desugar.git -b master |
Uploaded | by ryanglscott at 2020-03-25T15:08:47Z |
Distributions | Arch:1.14, Debian:1.10, LTSHaskell:1.16, NixOS:1.15, Stackage:1.17 |
Reverse Dependencies | 17 direct, 325 indirect [details] |
Downloads | 47259 total (189 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2020-03-25 [all 1 reports] |