[Haskell-beginners] Simpler than lifting

Adrian May adrian.alexander.may at gmail.com
Mon Mar 18 14:59:28 CET 2013


Hi All,

I have this in my code:

infixl 6 ~+, ~-
f ~+ g = \p -> f p + g p
f ~- g = \p -> f p - g p

but I feel that the prelude must have already taken care of such things.
What's the proper way to do it?

Thanks in advance,
Adrian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130318/849bae5a/attachment.htm>


More information about the Beginners mailing list