Per-class typeclass transparency data #17966
Labels
kind: wish
Feature or enhancement requests.
part: hints
Hint mechanism, databases, etc.
part: typeclasses
The typeclass mechanism.
Sometimes I want to set transparency data per-instance or per-class. For example if I have a class
Foo := foo : Bar
, I may want it to be the case that hints fromBar
don't apply when the goal isFoo
(even more importantly,Foo
may have phantom parameters that should block unification), but when resolving hints for other classes, I want the hints to apply even if theirFoo
argument is a context variable whose type isBar
.Related to #14126
The text was updated successfully, but these errors were encountered: