[Haskell-beginners] pure instead of return?

Silent Leaf silent.leaf0 at gmail.com
Sun Jul 2 12:00:16 UTC 2017


ok, got it; yes you're right. though mind you it's so barely used i'm not
sure it'd really break the style that much. but depends on whoever else is
in the boat.

2017-07-01 22:03 GMT+02:00 Francesco Ariis <fa-ml at ariis.it>:

> On Sat, Jul 01, 2017 at 08:18:57PM +0200, Silent Leaf wrote:
> > but i can use pure every time return is usable, can i not? every
> > applicatives are monads right? i don't get the "if you can" part. why
> could
> > i not?
>
> Say I am contributing to a project, and they use `return`, I am not going
> die on the `pure` hill, you just go with what the style is.
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20170702/62beb1b0/attachment.html>


More information about the Beginners mailing list