[Haskell-cafe] why can't you surround (+) in backticks and have it be infix?

tpledger at ihug.co.nz tpledger at ihug.co.nz
Mon Jan 8 15:18:58 EST 2007


David House wrote:
 :
 | You can fake this:
 |
 | (-!) = ($)
 | (!-) = flip ($)
 |
 | foo -! liftM2 (,) !- bar
 |
 | Not perfect, but it's interesting nonetheless.
 |
 | And yes, this was a product of some #haskell
 | brainstorming and algorithm tennis. :)

:-)

Was anyone in that brainstorm thinking of Chung-chieh Shan's
-: and :-
(http://www.haskell.org/pipermail/haskell-cafe/2002-July/003215.html)
or was the similarity just a really cool coincidence?

Regards,
Tom


More information about the Haskell-Cafe mailing list