[Haskell-beginners] Simpler than lifting

Daniel Trstenjak daniel.trstenjak at gmail.com
Mon Mar 18 16:23:13 CET 2013


> 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



More information about the Beginners mailing list