aya-dev icon indicating copy to clipboard operation
aya-dev copied to clipboard

Typeclass Inheritance

Open re-xyr opened this issue 4 years ago • 0 comments

Basically,

  • Use the same underlying structure as record inheritance
  • Auto search for the inherited typeclass's instance, hint user to give manually when >1 instances exist
  • Also introducing the parent typeclass instance into scope when child typeclass instance is in scope (e.g. Functor available when Applicative in scope)

re-xyr avatar Jun 14 '21 02:06 re-xyr