johnhungerford / generic-schema

2 stars 1 forks source link

Unable to provide polymorphic given schemas using schema builder #92

Open johnhungerford opened 2 years ago

johnhungerford commented 2 years ago

Because given and implicit def require explicit type annotations, you can't provide a given schema using the schema builder. Possible solution is to generate the schemata using type classes, but there should be a solution.

Does transparent inline given mySchema[T] : Schema[T] = ??? work? Will the type Schema[A] be narrowed to Schema.Aux[T,S] properly?