[Haskell-beginners] Simpler than lifting

Adrian May adrian.alexander.may at gmail.com
Mon Mar 18 16:27:01 CET 2013


Thanks everyone! I knew it would be in there somewhere but I wasn't sure
where to look. I'll play with that stuff in the morning.

Adrian.


On 18 March 2013 23:23, Daniel Trstenjak <daniel.trstenjak at gmail.com> wrote:

>
> > In particular, (~+) = liftA2 (+), and similarly for (~-).  This uses
> > the  ((->) e)  instance of Applicative.
>
> Or by using '<$>' and '<*>', which is a bit more general:
>
> (+) <$> f <*> g
>
> funcWith3Args <$> f <*> g <*> h
>
>
> Greetings,
> Daniel
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130318/d62ddd59/attachment.htm>


More information about the Beginners mailing list