Shapeless has this interesting Annotation[A, T]. From the comments:
If type T has an annotation of type A, then an implicit Annotation[A, T] can be found, and its apply method provides an instance of the annotation.
A current limitation is that such an implicit is found only when the annotation is a case class. It would thus be useful to make derive.key a case class such that other mechanisms could utilise shapeless.Annotation to extract its values.
Shapeless has this interesting
Annotation[A, T]
. From the comments:A current limitation is that such an implicit is found only when the annotation is a case class. It would thus be useful to make
derive.key
a case class such that other mechanisms could utiliseshapeless.Annotation
to extract its values.ID: 144 Original Author: jppellet