intrinsic-superclasses: A quasiquoter for better instance deriving and default methods

[ language, library, mit ] [ Propose Tags ]

A template haskell utility inspired by the Intrinsic Superclasses Proposal, which allows defining all superclass methods at the "root" subclass of the heirarchy in one declaration, rather than an instance declaration per class. Also permits defining superclass method defaults with the subclass for greater flexibility than the DefaultSignatures extension


[Skip to Readme]
Versions 0.1.0.0, 0.2.0.0, 0.3.0.0, 0.4.0.0
Dependencies base (>=4.7 && <5), containers, haskell-src-meta, mtl, template-haskell [details]
License MIT
Copyright Sodality
Author Dai
Maintainer dailectic@gmail.com
Category Language
Home page https://github.com/daig/intrinsic-superclasses#readme
Bug tracker https://github.com/daig/intrinsic-superclasses/issues
Source repo head: git clone https://github.com/daig/intrinsic-superclasses
Uploaded by dailectic at Sat Jul 14 21:30:35 UTC 2018
Distributions NixOS:0.4.0.0
Downloads 492 total (12 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-07-14 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for intrinsic-superclasses-0.4.0.0

[back to package description]

intrinsic-superclasses

A template haskell implementation of the Intrinsic Superclasses Proposal, which allows defining all typeclass methods at the "root" of the class heirarchy, rather than an instance declaration per class.

There are currently a number of limitations compared with the full language proposal (see: issues).

Functionality is added as-needed so drop an issue (and/or a pull request, if you're feeling ambitious 😉) if you have a use-case that isn't covered now.