is there an easy way to convert values between the Exception and Either monads inside a mlet
block?
I have some functions which I've wrapped to return Left
s and some functions where I'd like to treat an exception thrown as Failure
's, and I'd like to thread these inside mlet
returning a Right
or Left
I was hoping that if I use the Either-context then it would do the conversion for me
@luxbock: it looks the forthcoming cats 2.0 release includes either/try-either
which would replace your use case
.. and I hope it's getting released soon
I'm giving a presentation on cats at my local clojure group next month 😄