funcool

A channel for discussing and asking questions about Funcool libraries https://github.com/funcool/
2018-08-29T07:42:39.000100Z

I believe I would need support for flatmap besides bind

2018-08-29T07:44:13.000100Z

In order to flatten nested try

2018-08-29T09:36:44.000100Z

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 %))))

2018-08-29T09:37:34.000100Z

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

mccraigmccraig 2018-08-29T10:46:27.000100Z

have you tried cats.core/fmap ?

mccraigmccraig 2018-08-29T10:47:03.000100Z

and do you want exc/success rather than maybe/just ?