generic-deriving

Generic programming library for generalised deriving.

Version on this page:1.6.3
LTS Haskell 15.14:1.13.1
Stackage Nightly 2020-05-31:1.13.1
Latest on Hackage:1.13.1

See all snapshots generic-deriving appears in

BSD-3-Clause licensed by José Pedro Magalhães
Maintained by [email protected]

Module documentation for 1.6.3

This version can be pinned in stack with:[email protected]:00394b6c17c70553fbbb1a255771c93b34638f40451f0d77ca3a9b17c3432768,2264
  • Generics
    • Generics.Deriving
      • Generics.Deriving.Base
      • Generics.Deriving.ConNames
      • Generics.Deriving.Copoint
      • Generics.Deriving.Enum
      • Generics.Deriving.Eq
      • Generics.Deriving.Foldable
      • Generics.Deriving.Functor
      • Generics.Deriving.Instances
      • Generics.Deriving.Monoid
      • Generics.Deriving.Show
      • Generics.Deriving.TH
      • Generics.Deriving.Traversable
      • Generics.Deriving.Uniplate

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.