[Haskell-cafe] Usage of `pure`

Simon Jakobi simon.jakobi at googlemail.com
Thu Jun 7 12:20:13 UTC 2018


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 <aquagnu at gmail.com>:
> 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.


More information about the Haskell-Cafe mailing list