IO_validation.kt
# arrow
r
IO_validation.kt
arrow 2
d
I'll peer at this some more tomorrow but this looks good. I'll see what I can accomplish with it. 🙏
r
As for ValidatedT it's not possible because Validated does not have a Monad extension it only goes up to Applicative and Monad transformers require Monad
Because they need to flatMap to the underlying value. Validated has no flatMap because otherwise it could not compose with error accumulation thanks to the E semigroup
d
Yeah that makes sense
With
flatMap
Validated could not accumulate downstream of an error