A grab bag of functions for use with Template Haskell

Version on this page:
LTS Haskell 22.26:
Stackage Nightly 2024-06-20:
Latest on Hackage:

See all snapshots th-extras appears in

LicenseRef-PublicDomain licensed and maintained by James Cook
This version can be pinned in stack with:th-extras-,1619

Module documentation for


Haskell Hackage Hackage CI Github CI BSD3 License

A grab bag of useful functions for use with Template Haskell.

This is basically the place I put all my ugly CPP hacks to support the ever-changing interface of the template haskell system by providing high-level operations and making sure they work on as many versions of Template Haskell as I can.


Revision history for th-extras - 2023-12-15

  • Support GHC 9.6 and 9.8 - 2022-01-04

  • Fix GHC 8.0 build

  • Support GHC 9.0 and 9.2 - 2019-05-13

  • Improve support for various corner cases

  • Ensure works with a range of GHCs. - 2016-05-10

  • Support GHC 8.0 - 2012-01-13

  • Added some more utility functions - 2011-11-15

  • Initial release