[Haskell-cafe] field record update syntax

S. Alexander Jacobson alex at alexjacobson.com
Thu Jan 27 12:59:50 EST 2005

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...


S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com

More information about the Haskell-Cafe mailing list