Re: [Haskell-cafe] field record update syntax

2005-01-28 Thread John Meacham
On Thu, Jan 27, 2005 at 12:59:50PM -0500, S. Alexander Jacobson wrote: > I have a lot of code of the form > > foo {bar = fn $ bar foo} > > Is there a more concise syntax? I am thinking > the record equivalent of C's foo+=5... > you can use DrIFT to automatically create bar_u to update a fie

Re: [Haskell-cafe] field record update syntax

2005-01-27 Thread Henning Thielemann
On Thu, 27 Jan 2005, S. Alexander Jacobson wrote: > I have a lot of code of the form > >foo {bar = fn $ bar foo} > > Is there a more concise syntax? I am thinking > the record equivalent of C's foo+=5... > > I imagine there is some operator that does this e.g. > > foo {bar =* fn} > > But

[Haskell-cafe] field record update syntax

2005-01-27 Thread S. Alexander Jacobson
I have a lot of code of the form foo {bar = fn $ bar foo} Is there a more concise syntax? I am thinking the record equivalent of C's foo+=5... I imagine there is some operator that does this e.g. foo {bar =* fn} But I don't know what it is... -Alex- _