zeroth

ZeroTH - remove unnecessary TH dependencies

Latest on Hackage:2009.6.23.3

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed
Maintained by Robin Green

TemplateHaskell is fairly useful for generating new Haskell code. This, however, can incur a dependency on TH on subsequent uses where none theoretically should exist. ZeroTH solves this by scanning a file for top-level TH declarations, evaluates them, removes TH imports, and outputs the resulting code.