durban / seals

Tools for schema evolution and language-integrated schemata
Apache License 2.0
65 stars 7 forks source link

Consider using export-hook for integrations #20

Closed durban closed 4 years ago

durban commented 8 years ago

Integration modules usually want to provide type class instances for their respective project (e.g., seals-scodec will provide scodec Encoder instances) derived from Reified. If these instances are to be imported by the user, their priority will be higher than the usual (built-in) instances. For an example, see #7.

export-hook might provide a solution to this problem. It should be investigated.

durban commented 7 years ago

Also take a look at shapeless.OrphanDeriver.

durban commented 4 years ago

This probably wouldn't work in Scala 2.13, closing.