I am confused with Either , Try and Validation from scalaz . None of them seem to be doing what I need. I need the simple Result[E, R] monad, where E is the error type and R is the result type.
Either not suitable because it is not a monad (but a projection) and impartial.Try not suitable, as its error type is Throwable , and it’s not really a monadValidation not a monad at all.
What would you suggest? Should I write this type of Result myself?
scala monads error-handling scalaz
Michael
source share