Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default codecs are not picked up for tagged types (even when in scope) #3

Open
vpavkin opened this issue Jun 18, 2018 · 0 comments
Open
Labels
auto magnolia Issue depends on a fix in magnolia repo

Comments

@vpavkin
Copy link
Owner

vpavkin commented Jun 18, 2018

trait Tag1
trait Tag2
case class WithTaggedMembers(i: List[Int] @@ Tag1, s: String @@ Tag2)

implicit val encodeIntTag1: Encoder[List[Int] @@ Tag1] = Encoder[List[Int]].narrow

Even when encodeIntTag1 instance is directly in scope, magnolia auto deriver doesn't use them and derives default "coproduct" encoder (and decoder) for list.

Probably should be fixed in magnolia, but maybe have to provide a simpler reproduction case.

@vpavkin vpavkin added magnolia Issue depends on a fix in magnolia repo auto labels Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto magnolia Issue depends on a fix in magnolia repo
Projects
None yet
Development

No branches or pull requests

1 participant