[Haskell-cafe] monad constraint + record update

Brent Yorgey byorgey at seas.upenn.edu
Tue Dec 23 14:30:23 EST 2008


>
> Is there a standard update function for fields in data types, something 
> that OO programmers do with assignments like obj.attr := value ?

Oh, I missed this question the first time.  You probably want
Functional References:

http://twan.home.fmf.nl/blog/haskell/overloading-functional-references.details

-Brent


More information about the Haskell-Cafe mailing list