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

[ language, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

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]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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 2018-07-14T21:30:35Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2416 total (24 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-07-14 [all 1 reports]

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.