@hackage dependent-sum-template0.2.0.2
Template Haskell code to generate instances of classes in some package
Categories
License
LicenseRef-PublicDomain
Maintainer
Obsidian Systems, LLC <maintainer@obsidian.systems>
Links
Versions
Installation
Tested Compilers
Dependencies (6)
- base >=3 && <5
- containers >=0.5.9.2
- mtl
- some >=1.0.1 && <1.1
- template-haskell >=2.11 && <2.24
- th-abstraction >=0.4 Show all…
Dependents (18)
@hackage/ghc-debug-brick, @hackage/tinytools, @hackage/aeson-gadt-th, @hackage/morley, @hackage/hnix-store-core, @hackage/reflex-libtelnet, Show all…
dependent-sum-template

This library defines Template Haskell functions for deriving the GEq, GCompare, GShow, and GRead functions from the some library.
-
GEq tagis similar to anEqinstance fortag aexcept that withgeq, values of typestag aandtag bmay be compared, and in the case of equality, evidence that the typesaandbare equal is provided. -
GCompare tagis similar to the above forOrd, and providesgcompare, giving aGOrderingthat gives similar evidence of type equality when values match. -
GShow tagmeans thattag ahas (the equivalent of) aShowinstance. -
GRead tagmeans thattag ahas (the equivalent of) aReadinstance.