Lukasz Kalnik
10/06/2022, 3:03 PMbind()
function of the either {}
scope stops being recognized (although it just worked a few moments before and there were no changes in the code):
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public open suspend fun <B> Either<CallError, TypeVariable(B)>.bind(): TypeVariable(B) defined in arrow.core.continuations.EffectScope
public open suspend fun <B> Option<TypeVariable(B)>.bind(shift: () -> CallError): TypeVariable(B) defined in arrow.core.continuations.EffectScope
public open suspend fun <B> Validated<CallError, TypeVariable(B)>.bind(): TypeVariable(B) defined in arrow.core.continuations.EffectScope
public open suspend fun <B> EagerEffect<CallError, TypeVariable(B)>.bind(): TypeVariable(B) defined in arrow.core.continuations.EffectScope
public open suspend fun <B> Effect<CallError, TypeVariable(B)>.bind(): TypeVariable(B) defined in arrow.core.continuations.EffectScope
public open suspend fun <B> Result<TypeVariable(B)>.bind(transform: (Throwable) -> CallError): TypeVariable(B) defined in arrow.core.continuations.EffectScope
Lukasz Kalnik
10/06/2022, 3:05 PMscenesRepository.scenes.value
is of type Either<DataMissing, List<Scene>>
simon.vergauwen
10/06/2022, 3:06 PMDataMissing
a subtype of CallError
?Lukasz Kalnik
10/06/2022, 3:06 PMLukasz Kalnik
10/06/2022, 3:07 PMeither
scope returning different types of errors which are not related...Lukasz Kalnik
10/06/2022, 3:07 PMsimon.vergauwen
10/06/2022, 3:08 PMLukasz Kalnik
10/06/2022, 3:08 PMsimon.vergauwen
10/06/2022, 3:09 PM@Deprecation
with DeprecationLevel.ERROR
for that. Going to give that a try, that would be really awesome.Lukasz Kalnik
10/06/2022, 3:13 PMLukasz Kalnik
10/06/2022, 3:14 PMsimon.vergauwen
10/06/2022, 3:30 PMsimon.vergauwen
10/06/2022, 3:34 PM@Deprecation
for this 😮Lukasz Kalnik
10/06/2022, 3:36 PMLukasz Kalnik
10/06/2022, 3:36 PMsimon.vergauwen
10/06/2022, 3:37 PME
and R
types.
Yes, it's definitely a bit of a hack but it has some cool use-cases.simon.vergauwen
10/06/2022, 3:37 PMLukasz Kalnik
10/06/2022, 3:38 PMwith the same Left type or subtype
simon.vergauwen
10/06/2022, 3:47 PMsimon.vergauwen
10/06/2022, 3:48 PM@DslMarker
more, and have been able to convert some comples Resource structures into simple DSLs without compromising correctness.Stylianos Gakis
10/06/2022, 6:08 PMsimon.vergauwen
10/07/2022, 7:49 AM