
18 Mar
2013
18 Mar
'13
10:15 a.m.
On Mon, Mar 18, 2013 at 9:59 AM, Adrian May
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?
Not in the Prelude (which is specified by the Haskell Language Report and difficult to change), but I think you want to look at Control.Applicative. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net