We have some functions that return Either Text a, others that return Either Failure a, and others that require {Exception}. I think Either Text a is right out, just replace that with Either Failure a in all cases, since the Failure can contain a Text message as well as an error type.
Maybe the ones that return Either start with try, and the ones that throw exception don't.
Often both versions are useful.
We have some functions that return
Either Text a, others that returnEither Failure a, and others that require{Exception}. I thinkEither Text ais right out, just replace that withEither Failure ain all cases, since theFailurecan contain aTextmessage as well as an error type.Maybe the ones that return
Eitherstart withtry, and the ones that throw exception don't.Often both versions are useful.