Applicative ((->) c) methods

David Feuer david.feuer at gmail.com
Wed Nov 20 05:41:53 UTC 2019


Both are correct.

On Wed, Nov 20, 2019, 12:15 AM Tony Morris <tonymorris at gmail.com> wrote:

> This is incorrect.
>
> (<*) = liftA2 const
> (*>) = liftA2 (flip const)
>
> On 19/11/19 6:40 am, Keith wrote:
> > Just thinking for Applicative ((->) c)
> > (<*) = const
> > (*>) = flip const -- or \ _ x -> x
> >
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20191120/b4066e79/attachment.html>


More information about the Libraries mailing list