spartanz / schemaz

A purely-functional library for defining type-safe schemas for algebraic data types, providing free generators, SQL queries, JSON codecs, binary codecs, and migration from this schema definition
https://spartanz.github.io/schemaz
Apache License 2.0
164 stars 18 forks source link

Implement ScalaSchema #4

Closed vil1 closed 5 years ago

vil1 commented 6 years ago

In src/main/scala/schemas.scala there is a unimplemented ScalaSchema object.

We need to give it a proper implementation of type Prim[A], ie the "set" of primitive types in the Scala world. That would be a subset of the kind * types in the standard library: Int, Boolean, String, etc.

I'm not sure there is a convenient way to encode that but this is worth a try.

vil1 commented 6 years ago

I'll take this one