Hi all, I'm probably holding it wrong or/and I missed some steps in the evolution of the library
I know that
CoProduct
was removed at some point, but wasn't it replaced by
Union
?
Which dependency do I need to get
Union2
Union3
etc?
r
raulraja
12/20/2021, 11:54 AM
Hi @ivanmorgillo there is no replacement for Coproduct at the moment because union types may make it to the language based on community discussions. We decided to remove Coproduct from Arrow in favor of Unions or custom ADTs. We are also looking into custom generic implementation for schemas that covers both products and coproducts in a couple of branches. https://github.com/arrow-kt/arrow/pull/2564/files
Since we knew Coproduct would ultimately disappear one way or another we didn’t want to make promises of compatibility in 1.0.