impl: Framework for defaulting superclasses

[ development, library, mit, template-haskell ] [ Propose Tags ]

This small but extensible framework facilitates defining complex defaulting rules that are not handled by DefaultSignatures, and reducing the overhead of giving instances to new datatypes by generating superclasses. One reason we might want this is when a superclass wants to be given a default by two different subclasses (ex: Bifunctor and Profunctor both could generate Functor instances). See the example internal library for how to implement instances of Impl. Impl is most valuable when instantiating deep (or even undecidably recursive) typeclass hierarchies for multiple new datatypes, which is most common in client code.

Versions [faq],
Dependencies base (>= && <4.13), containers (>= && <0.7), named (>= && <0.3), template-haskell (>= && <2.15) [details]
License MIT
Copyright 2018 Sodality
Author Dai
Category Development, Template Haskell
Home page
Bug tracker
Source repo head: git clone
Uploaded by dailectic at Tue Nov 27 14:41:05 UTC 2018
Distributions NixOS:
Downloads 118 total (19 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user [build log]
Last success reported on 2018-11-27 [all 1 reports]


[Index] [Quick Jump]



Show generated TH in example


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees