Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Note: I believe tofu-optics uses a profunctor encoding under the hood which let them side steps some type inference issues. Better to check with Odomontois.
Now, Scala 3 might change that. We will have parametric functions and opaque types, so I think it is worth trying. We have already made experiments in Monocly, a playground repo for Scala 3 optics. I believe Yillin Wei has a fork with a proof of concept of profunctor encoding that supports index and coindex optics.
We always have work to do, for example to define scalfix rules to automate the migration https://github.com/optics-dev/Monocle/issues/1001
Related posts
- Ref in cats-effect. When should I use it, and when should I not?
- Monocle 3 release candidate - a super useful and simple library for optics with poetic api
- Monocle 3.0.0-M1 is released for Scala 2.13 and Scala 3
- Make Invalid States Unrepresentable
- Does the fthomas/refined library work differently in Scala 3?