Generic programming library for generalised deriving.

Version on this page:1.8.0
LTS Haskell 16.4:1.13.1
Stackage Nightly 2020-07-04:1.13.1
Latest on Hackage:1.13.1

See all snapshots generic-deriving appears in

This package provides functionality for generalising the deriving mechanism in Haskell to arbitrary classes. It was first described in the paper:

  • A generic deriving mechanism for Haskell. Jose Pedro Magalhaes, Atze Dijkstra, Johan Jeuring, and Andres Loeh. Haskell'10.

The current implementation integrates with the new GHC Generics. See for more information. Template Haskell code is provided for supporting GHC before version 7.2.