[Haskell-cafe] why can't you surround (+) in backticks and have
it be infix?
David House
dmhouse at gmail.com
Mon Jan 8 11:46:14 EST 2007
On 08/01/07, Greg Buchholz <haskell at sleepingsquirrel.org> wrote:
> ...I've also thought it would be nice to be able to say things like...
>
> (foo `liftM2 (,)` bar)
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. :)
--
-David House, dmhouse at gmail.com
More information about the Haskell-Cafe
mailing list