Hello. When trying to serialise a NonEmptyList i g...
# arrow
k
Hello. When trying to serialise a NonEmptyList i get some error
java.lang.IllegalStateException: This is should be simple type: (Consumer<in (E..E?)>..Consumer<in (E..E?)>?)
Copy code
fun main() {
    val nel = listOf(1,2,3).mapOrAccumulate {
        raise(Error("error"))
    }
    jacksonObjectMapper().writeValueAsString(nel).also(::println)
}
This is with Kotlin 2.0.21 and Arrow 2.1.2
a
there are a few changes in both the compiler (a bug was fixed about inline classes) and Arrow itself, so maybe this one is gone. Would you mind checking in Kotlin 2.2.20, or creating an issue that reproduces the problem? Thanks in advance!