| 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.
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
| 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
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
| 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
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?
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
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
[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
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
10 matches
Mail list logo