I’m starting to upgrade a few services from arrow ...
# arrow
d
I’m starting to upgrade a few services from arrow 1.0 to 1.1. It seems that
either
and
either.eager
are now deprecated? The replacement is
effect { … }.toEither()
and
eagerEffect { ... }.toEither()
? Is that right?
s
No,
either
still exists, under a different package as far as I remember. Try importing
import arrow.core.continuations.either
manually
But the deprecation message should automatically point you to change the package, does it not do that for you? 👀
d
Alright, let me try it.
Oh I see. The replacement works on the either portion, not on the
eager
portion. At least on IntelliJ
d
Alright, just checked the either object now in the package
arrow.core.continuations
s
Yes, it should just work without any changes under the new package. The ReplaceWith is missing, and the description is not great. We would welcome a PR for it! Or, a ticket and I'll try to tackle it soon.