talira

Compare

th-abstractionth-liftgeneric-deriving
What it isOne interface to Template Haskell's datatype information across GHC versionsDerive Template Haskell's Lift class for datatypesGeneric programming library for generalised deriving in Haskell
KindOpen sourceOpen sourceOpen source
Trust0.230.230.26
Stars201345
Last commit2026-01-102026-01-042026-06-17
LicenceISCGPL-2.0-only OR th-lift BSD 3-clause licenceBSD-3-Clause
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyEric MertensRyan ScottJosé Pedro Magalhães
Features
  • normalized reified datatype, newtype and data family instance information
  • hides normal versus GADT syntax differences
  • supports many Template Haskell versions
  • tested on GHC 8.0 to 9.14
  • derives Lift instances for datatypes with Template Haskell
  • backports DeriveLift bug fixes to older GHC versions
  • GHC.Generics backports for older compilers
  • Template Haskell deriving of Generic and Generic1
  • example generic default implementations
Limitations
    • GHC's DeriveLift extension does the same job built in since GHC 8.0, which has largely replaced this package
    • Only useful for projects that still support GHC versions older than the DeriveLift fixes they need
    • Its example classes (GShow, GEq and others) are for teaching and aren't drop-in replacements for the standard classes.