3 ms·
This is completely wrong. Result is either success or failure, so an R<E1, R<E2, A>> can never contain both E1 and E2 at the same time. Validation types work t
by lmm 7y ago
This is completely wrong. Result is either success or failure, so an R<E1, R<E2, A>> can never contain both E1 and E2 at the same time.
Validation types work the way you describe and require a monoidal "error" side, but famously do not form monads (though they are applicative functors).
- pinopinopino 7y agoA true that, long day and have been working with shapeless in scala, where type level and value level mixes up :)