scala-hamsters / hamsters

A mini Scala utility library
Apache License 2.0
291 stars 23 forks source link

Case class <-> HList conversions #46

Closed dgouyette closed 6 years ago

dgouyette commented 7 years ago
@Gen
case class User(firstName : String, lastName : String)

We could generate a companion object with methods :
implicit def toHlist(user) : String :: String :: HNil=??? implicit def fromHlist(v : String :: String :: HNil) : User=???