@hackage / dependent-sum-template

Template Haskell code to generate instances of classes in some package

Latest0.2.0.2

About

Metadata

  • Last updated , by alexfmpe
  • License LicenseRef-PublicDomain
  • Maintained by: Obsidian Systems, LLC <maintainer@obsidian.systems>

  • Lottery factor: 6

Links

Installation

Tested Compilers

  1. 9.12.1
  2. 9.10.1
  3. 9.8.2
  4. 9.6.1
  5. 9.4.5
  6. 9.2.5
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5
  11. 8.4.4

Readme

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.