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

2007-01-08 Thread David House
On 08/01/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Was anyone in that brainstorm thinking of Chung-chieh Shan's -: and :- (http://www.haskell.org/pipermail/haskell-cafe/2002-July/003215.html) It's likely. I don't remember exactly where it came from. -- -David House, [EMAIL PROTECTED] __

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

2007-01-08 Thread tpledger
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 thinki

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

2007-01-08 Thread David House
On 08/01/07, Greg Buchholz <[EMAIL PROTECTED]> 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

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

2007-01-08 Thread Greg Buchholz
tphyahoo wrote: > > "Issues: In Haskell, any function or constructor can be enclosed in backticks > and then used as an infix operator. " > > from http://www-users.cs.york.ac.uk/~mfn/hacle/issues/node2.html > > But this seems to be contradicted by... > > from #haskell > > -- 09:19 < tphyahoo>

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

2007-01-08 Thread tphyahoo
"Issues: In Haskell, any function or constructor can be enclosed in backticks and then used as an infix operator. " from http://www-users.cs.york.ac.uk/~mfn/hacle/issues/node2.html But this seems to be contradicted by... from #haskell -- 09:19 < tphyahoo> > let func = (+) in 1 `func` 2 -- 09: