[`refined4s-chimney`] Add missing `Transformer` to unwrap value for `ChimneyNewtype`
Closed this issue · 0 comments
kevin-lee commented
Summary
[refined4s-chimney
] Add missing Transformer
to unwrap value for ChimneyNewtype
Version
0.17.0
Description
import refined4s.*
import refined4s.modules.chimney.derivation.*
final case class Person(name: Person.Name)
object Person {
type Name = Name.Type
object Name extends Newtype[String], ChimneyNewtype[String]
}
final case class User(name: String)
import io.scalaland.chimney.*
import io.scalaland.chimney.dsl.*
val person = Person(Person.Name("Wade Wilson"))
val deadpool = person.transformInto[User] // This is currently not possible.