funcool

A channel for discussing and asking questions about Funcool libraries https://github.com/funcool/
luxbock 2016-07-14T10:07:21.000053Z

is there an easy way to convert values between the Exception and Either monads inside a mlet block?

luxbock 2016-07-14T10:09:43.000054Z

I have some functions which I've wrapped to return Lefts 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

luxbock 2016-07-14T10:18:14.000055Z

I was hoping that if I use the Either-context then it would do the conversion for me

mattly 2016-07-14T21:26:22.000056Z

@luxbock: it looks the forthcoming cats 2.0 release includes either/try-either which would replace your use case

mattly 2016-07-14T21:26:42.000057Z

.. and I hope it's getting released soon

mattly 2016-07-14T21:27:01.000058Z

I'm giving a presentation on cats at my local clojure group next month 😄