
Hello, Dear Cafe! Consider, I have big application with monad and applicative related code. What problems I can hit if I will replace all `return`s with `pure` (in `do`-blocks, anywhere). So, `return` will be totally eliminated. === Best regards, Paul

On Thu, Jun 07, 2018 at 02:21:09PM +0300, PY wrote:
Consider, I have big application with monad and applicative related code. What problems I can hit if I will replace all `return`s with `pure` (in `do`-blocks, anywhere). So, `return` will be totally eliminated.
Hello Paul, that might be a problem only if you need to support the (very very old) GHC 7.8 (or previous versions) -F

Hi Paul,
in case you're using -Wredundant-constraints, you might get some
warnings that a function that previously required Monad, now only
requires Applicative.
Cheers,
Simon
2018-06-07 13:21 GMT+02:00 PY
Hello, Dear Cafe!
Consider, I have big application with monad and applicative related code. What problems I can hit if I will replace all `return`s with `pure` (in `do`-blocks, anywhere). So, `return` will be totally eliminated.
===
Best regards, Paul
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
participants (3)
-
Francesco Ariis
-
PY
-
Simon Jakobi