You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems to be related related to #43
Tested with version 0.6.2
This snippet:
import henkan.optional.all._
object HenkanTest extends App {
case class Foo(value: String)
case class Domain(foo: Foo)
case class Message(foo: Option[Foo])
val dom = Domain(Foo("123"))
val msg = Message(Some(Foo("123")))
validate(msg).to[Domain] // works
from(dom).toOptional[Message] // fails to compile
}
Results in the following error messages:
Error:(14, 23) Cannot build toOptional conversion from HenkanTest.Domain to HenkanTest.Message, possibly due to missing cats instances (`Functor` instances are needed to convert fields in containers)
from(dom).toOptional[Message] // fails to compile
Error:(14, 23) not enough arguments for method toOptional: (implicit t: henkan.optional.ToOptional[HenkanTest.Domain,HenkanTest.Message])HenkanTest.Message.
Unspecified value parameter t.
from(dom).toOptional[Message] // fails to compile
The text was updated successfully, but these errors were encountered:
Seems to be related related to #43
Tested with version 0.6.2
This snippet:
Results in the following error messages:
The text was updated successfully, but these errors were encountered: