I believe I would need support for flatmap besides bind
In order to flatten nested try
I got this:
(cats/->>=
(maybe/just "<https://www.sapo.pt>")
(#(exc/try-on (parse-url %)))
(#(exc/try-on (open-connection %)))
(#(exc/try-on (to-stream %)))
(#(exc/try-on (slurp %))))
but I’d like to get rid of the anon funcs, but at the same time keep my parse-url, open-connection, etc
functions monad-free
have you tried cats.core/fmap
?
and do you want exc/success
rather than maybe/just
?