-
Notifications
You must be signed in to change notification settings - Fork 20
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
Interaction with ZLayer #1
Comments
Just tested. I'll need a |
given [A, B](using newType: Newtype.WithType[A, B], tag: Tag[A]): Tag[B] =
newType.unsafeWrapF(tag) This makes it work. |
My hero! This is the same technique as you use to derive other typeclasses (circe, quill) isn't it? |
Update: There are still some issues. It can now derive the tag; however, there are tag materialization issues in some cases due to some widening that the ZLayer macros perform. I'll try and get everything fixed. It'll work for basic things atm. |
After exploring some more recently, I think this needs to be fixed @ the izumi reflect level :( |
related to zio/zio-prelude#821
Alas, Izumi tag strikes again!
to reproduce:
The text was updated successfully, but these errors were encountered: