RE: Infix expressions

2006-03-17 Thread Simon Peyton-Jones
| The second header line shows categories, whereas the links in the grey | boxes are to articles. The idioms category collects together articles | that are about idioms. | | We could have an idioms or programming techniques article as well, | of course. It only needs to be written. Interesting.

Re: Infix expressions

2006-03-17 Thread Ashley Yakeley
In article [EMAIL PROTECTED] ft.com, Simon Peyton-Jones [EMAIL PROTECTED] wrote: But can we arrange the home page of Haskell.org so that a new and ignorant visitor can simply look on the visible page (without prior knowledge) and know where to go? Yes, yes, go ahead and change the page

RE: Infix expressions

2006-03-16 Thread Simon Peyton-Jones
| To: Malcolm Wallace | Cc: haskell-prime@haskell.org | Subject: Re: Infix expressions | | Malcolm.Wallace: | [EMAIL PROTECTED] (Donald Bruce Stewart) writes: | | Yes, this is _exactly_ the kind of thing to add to the Idioms | page of the wiki, here: | http://www.haskell.org/haskellwiki

Re: Infix expressions

2006-03-16 Thread Ashley Yakeley
Simon Peyton-Jones wrote: Incidentally, I looked on the Haskell home page for links to programming idioms and advice, but came up empty. The obvious place to look was under Using Haskell, but I didn't find anything. Was I being stupid? Haskell.org is the obvious place to look for advice about

RE: Infix expressions

2006-03-16 Thread Simon Peyton-Jones
| Incidentally, I looked on the Haskell home page for links to programming | idioms and advice, but came up empty. The obvious place to look was | under Using Haskell, but I didn't find anything. Was I being stupid? | Haskell.org is the obvious place to look for advice about programming in

Re: Infix expressions

2006-03-16 Thread Ashley Yakeley
Simon Peyton-Jones wrote: Oh yes so there is! But what is the rationale for what goes in those two header lines, and what goes in the grey box lists? Why would idioms be in the first place but not the second, and FAQ in the second but not the first? Perhaps we could have just the grey boxes?

RE: Infix expressions

2006-03-15 Thread Simon Peyton-Jones
PROTECTED]; haskell-prime@haskell.org | Subject: Infix expressions | | | Doaitse Swierstra wrote: | In Haskell we write `f` in order to infixify the identifier f. In ABC | the stuff between backquotes is not limited to an identifier, but any | expression may occur there. This would allow one to write

Re: Infix expressions

2006-03-15 Thread Donald Bruce Stewart
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of | [EMAIL PROTECTED] | Sent: 15 March 2006 04:34 | To: [EMAIL PROTECTED]; haskell-prime@haskell.org | Subject: Infix expressions | | | Doaitse Swierstra wrote: | In Haskell we write `f` in order to infixify the identifier f. In ABC

Re: Infix expressions

2006-03-15 Thread Malcolm Wallace
[EMAIL PROTECTED] (Donald Bruce Stewart) writes: Yes, this is _exactly_ the kind of thing to add to the Idioms page of the wiki, here: http://www.haskell.org/haskellwiki/Category:Idioms So if anyone knows of an interesting Haskell trick, and wants to write about it, add a page! It is

Infix expressions

2006-03-14 Thread oleg
showed the Haskell98 solution for exactly the same example, in their article `Infix expressions', back in 2002: http://www.haskell.org/pipermail/haskell-cafe/2002-July/003215.html For ease of reference, here's their elegant solution: infixr 0 -:, :- data Infix f y = f :- y x -:f:- y = x `f