Open andreoss opened 5 months ago
Can DeriveConfig work with opaque types?
DeriveConfig
opaque type Template = String object Template: import zio.* import zio.config.magnolia.* private def compile(v: String): Template = ??? def apply(v: String): Template = compile(v) given DeriveConfig[Template] = DeriveConfig[String].map(Template(_)) // Infinite loop here
Can
DeriveConfig
work with opaque types?