dependent-sum-template: Template Haskell code to generate instances of classes in some package

[ public-domain, unclassified ] [ Propose Tags ]

Template Haskell code to generate instances of classes in some package, such as GEq and GCompare.

[Skip to Readme]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,
Change log
Dependencies base (>=3 && <5), containers (>=, mtl, some (>=1.0.1 && <1.1), template-haskell (>=2.11 && <2.22), th-abstraction (>=0.4) [details]
License LicenseRef-PublicDomain
Author James Cook <>
Maintainer Obsidian Systems, LLC <>
Revised Revision 1 made by Bodigrim at 2024-05-05T21:55:29Z
Category Unclassified
Home page
Source repo head: git clone
Uploaded by JohnEricson at 2023-12-06T15:47:16Z
Distributions Arch:, Debian:, LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 11 direct, 84 indirect [details]
Downloads 21499 total (136 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-12-06 [all 1 reports]

Readme for dependent-sum-template-

[back to package description]

dependent-sum-template Build Status Hackage

This library defines Template Haskell functions for deriving the GEq, GCompare, GShow, and GRead functions from the some library.

  • GEq tag is similar to an Eq instance for tag a except that with geq, values of types tag a and tag b may be compared, and in the case of equality, evidence that the types a and b are equal is provided.

  • GCompare tag is similar to the above for Ord, and provides gcompare, giving a GOrdering that gives similar evidence of type equality when values match.

  • GShow tag means that tag a has (the equivalent of) a Show instance.

  • GRead tag means that tag a has (the equivalent of) a Read instance.