talira

Compare

generic-derivingth-liftth-abstraction
What it isGeneric programming library for generalised deriving in HaskellDerive Template Haskell's Lift class for datatypesOne interface to Template Haskell's datatype information across GHC versions
KindOpen sourceOpen sourceOpen source
Trust0.260.230.23
Stars451320
Last commit2026-06-172026-01-042026-01-10
LicenceBSD-3-ClauseGPL-2.0-only OR th-lift BSD 3-clause licenceISC
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———
CompanyJosé Pedro MagalhãesRyan ScottEric Mertens
Features
  • GHC.Generics backports for older compilers
  • Template Haskell deriving of Generic and Generic1
  • example generic default implementations
  • derives Lift instances for datatypes with Template Haskell
  • backports DeriveLift bug fixes to older GHC versions
  • 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
Limitations
  • Its example classes (GShow, GEq and others) are for teaching and aren't drop-in replacements for the standard classes.
  • 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