Hareendran
01/05/2022, 2:09 AM<kotlin.version>1.5.31</kotlin.version>
but when I use
<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-core</artifactId>
<version>0.12.1</version>
</dependency>
<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-fx</artifactId>
<version>0.12.1</version>
</dependency>
it leads to a warning that there are multiple koltin jarssimon.vergauwen
01/06/2022, 6:07 PM1.0.1
?simon.vergauwen
01/06/2022, 6:07 PM1.5.31
simon.vergauwen
01/06/2022, 6:08 PM1.0.2
will be using Kotlin 1.6.0Hareendran
01/06/2022, 7:22 PMsimon.vergauwen
01/06/2022, 7:29 PMarrow-fx-coroutines
. Sorrysimon.vergauwen
01/06/2022, 7:29 PMsimon.vergauwen
01/06/2022, 7:30 PMHareendran
01/06/2022, 8:13 PMtion failure:
[ERROR] Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
[ERROR] class arrow.core.Either, unresolved supertypes: arrow.Kind
Hareendran
01/06/2022, 8:14 PMeither.eager<DomainError, List<Policy>> {
val piConfigVersion = getConfigVersion(evRequest.configId, evRequest.versionId).bind()
val isEditable = isEditable(piConfigVersion).bind()
val incidentAction = addOrUpdateIncidentAction(piConfigVersion, evRequest.ev).bind()
val updatedIncidentAction = saveIncidentActions(incidentAction).bind()
val policies = updateScriptBehaviourPolicies(piConfigVersion, evRequest.ev).bind()
val updatedPolicies = savePolicies(policies).bind()
updatedPolicies
}
Hareendran
01/06/2022, 8:15 PMsimon.vergauwen
01/06/2022, 8:38 PMHareendran
01/06/2022, 8:40 PM<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-core</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-fx-coroutines</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>io.arrow-kt</groupId>
<artifactId>arrow-fx-stm</artifactId>
<version>1.0.1</version>
</dependency>
Hareendran
01/06/2022, 8:41 PM<kotlin.version>1.6.10</kotlin.version>
simon.vergauwen
01/06/2022, 8:42 PM-jvm
to your arrow dependencies if you’re using Maven instead of Gradle. You can also use 1.0.0
instead, and from 1.0.2
we will fix Maven support again. We had some issues with releasing Kotlin MPP 😅 1.0.1
and 1.0.0
are codewise identicalHareendran
01/06/2022, 8:43 PMHareendran
01/06/2022, 8:44 PMHareendran
01/06/2022, 8:45 PMUnresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun <A, B> Either<TypeVariable(A), Iterable<TypeVariable(B)>>.sequence(): List<Either<TypeVariable(A), TypeVariable(B)>> defined in arrow.core
public fun <A, B> Ior<TypeVariable(A), Iterable<TypeVariable(B)>>.sequence(): List<Ior<TypeVariable(A), TypeVariable(B)>> defined in arrow.core
public fun <K, V, G> MapKOf<TypeVariable(K), Kind<TypeVariable(G), TypeVariable(V)>> /* = Kind<Kind<ForMapK, TypeVariable(K)>, Kind<TypeVariable(G), TypeVariable(V)>> */.sequence(GA: Applicative<TypeVariable(G)>): Kind<TypeVariable(G), MapK<TypeVariable(K), TypeVariable(V)>> defined in arrow.core
public fun <A> Option<Iterable<TypeVariable(A)>>.sequence(): List<Option<TypeVariable(A)>> defined in arrow.core
public fun <A, G> SequenceKOf<Kind<TypeVariable(G), TypeVariable(A)>> /* = Kind<ForSequenceK, Kind<TypeVariable(G), TypeVariable(A)>> */.sequence(GA: Applicative<TypeVariable(G)>): Kind<TypeVariable(G), SequenceK<TypeVariable(A)>> defined in arrow.core
public fun <E, A> Validated<TypeVariable(E), Iterable<TypeVariable(A)>>.sequence(): List<Validated<TypeVariable(E), TypeVariable(A)>> defined in arrow.core
Hareendran
01/06/2022, 8:46 PM