Hello Arrow folks! I've upgraded to
v0.10.5
and my project failed to compile. I was surprised by this, as it was a patch-level bump.
Looking deeper, I found that
EitherT
has changed. Do you have some updated examples on how to
EitherT
with this new version?
Here is one function that fails to compile:
private fun readConfiguration(): EitherIO<T.Configuration> =
EitherT(IO.fx {
val config = T.Configuration(
System.getenv("CLIENT_ID"),
System.getenv("CLIENT_SECRET"))
Right(config)
}.handleError { Left("No CLIENT_ID or CLIENT_SECRET was found") })
The error is:
Required: String, Found: ForIO
. I've been going through the 0.10.5 changelog, looking at EitherT specific commits, but I couldn't find the cure for this error. Any and all help would be appreciated!