Packages / Fedora 43 / Source / ghc-generic-deriving

Source Package: ghc-generic-deriving (1.14.6-3.fc43)

Generic programming library for generalised deriving

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 older GHCs. This library is organized as follows: * "Generics.Deriving.Base" defines the core functionality for GHC generics, including the 'Generic(1)' classes and representation data types. On modern versions of GHC, this simply re-exports "GHC.Generics" from 'base'. On older versions of GHC, this module backports parts of "GHC.Generics" that were not included at the time, including 'Generic(1)' instances. * "Generics.Deriving.TH" implements Template Haskell functionality for deriving instances of 'Generic(1)'. * Educational code: in order to provide examples of how to define and use "GHC.Generics"-based defaults, this library offers a number of modules which define examples of type classes along with default implementations for the classes' methods. Currently, the following modules are provided: "Generics.Deriving.Copoint", "Generics.Deriving.ConNames", "Generics.Deriving.Enum", "Generics.Deriving.Eq", "Generics.Deriving.Foldable", "Generics.Deriving.Functor", "Generics.Deriving.Monoid", "Generics.Deriving.Semigroup", "Generics.Deriving.Show", "Generics.Deriving.Traversable", and "Generics.Deriving.Uniplate". It is worth emphasizing that these modules are primarly intended for educational purposes. Many of the classes in these modules resemble other commonly used classes—for example, 'GShow' from "Generics.Deriving.Show" resembles 'Show' from 'base'—but in general, the classes that 'generic-deriving' defines are not drop-in replacements. Moreover, the generic defaults that 'generic-deriving' provide often make simplifying assumptions that may violate expectations of how these classes might work elsewhere. For example, the generic default for 'GShow' does not behave exactly like 'deriving Show' would. If you are seeking "GHC.Generics"-based defaults for type classes in 'base', consider using the '<http://hackage.haskell.org/package/generic-data generic-data>' library. * "Generics.Deriving.Default" provides newtypes that allow leveraging the generic defaults in this library using the 'DerivingVia' GHC language extension. * "Generics.Deriving" re-exports "Generics.Deriving.Base", "Generics.Deriving.Default", and a selection of educational modules.

Package information

Homepage
[https://hackage.haskell.org/package/generic-deriving]
License
BSD-3-Clause
Downstream-Paketbetreuer
qulogicObserved Nov 20, 2026 [source]

The following binary packages are built from this source package:

Bekannte Sicherheitslücken

Keine passenden Meldungen in den erfassten Quellen.

Zuletzt synchronisiert:

[CVE-Katalog]

Quellen

  • Authoritative source; repository metadata signature verified

    Signaturnachweis

    43-everything-aarch64:6431612747d987257399969298151d19cfe87ed26322be6987e7b00cd0ae66a2

    Repository-signature verification record
    Signed-object SHA-256
    6c2a7b7225a6bd12acd5c95dcd0350a0a5929e195692ff68eb31db0ee6b9897b
    Keyring revision
    RPM-GPG-KEY-fedora-43-primary
    SHA-256 2b1449a082d3264dda8e18369f04e9ac4163bf3f8cb530b0783dc2ab064a08ec
    Tool and policy
    1
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable
  • Authoritative source; repository metadata signature verified

    Signaturnachweis

    43-everything-x86_64:eb1d8634a798b5cfcef64b0114711f431f2cd186b55cce902f1883a32c6ff4f2

    Repository-signature verification record
    Signed-object SHA-256
    42c0002750de6066124693fff143f4854c1e29474d893f7e6a7616012d41338f
    Keyring revision
    RPM-GPG-KEY-fedora-43-primary
    SHA-256 2b1449a082d3264dda8e18369f04e9ac4163bf3f8cb530b0783dc2ab064a08ec
    Tool and policy
    1
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable
  • Curated source

    Source observation

    58c9d374bd00b7d29599f0194ec3b0df45a3cdc0fb8d7352b2a2bf869a32237e

    No repository signature was supplied for this metadata.