generic-deriving

Generic programming library for generalised deriving.

Version on this page:1.8.0
LTS Haskell 22.37:1.14.5@rev:3
Stackage Nightly 2024-10-11:1.14.5@rev:3
Latest on Hackage:1.14.5@rev:3

See all snapshots generic-deriving appears in

BSD-3-Clause licensed by José Pedro Magalhães
Maintained by [email protected]
This version can be pinned in stack with:generic-deriving-1.8.0@sha256:3a77cee1fa75b36d81ba5fa5eafaec14ea0d0581260ee15f8c632e351f267ee6,2264

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 http://www.haskell.org/haskellwiki/GHC.Generics for more information. Template Haskell code is provided for supporting GHC before version 7.2.