
I hope Haskell prime will be a bit more "first class" when it comes to records. On Mon, Mar 30, 2009 at 11:14 PM, Henning Thielemann < lemming@henning-thielemann.de> wrote:
On Sun, 29 Mar 2009, Andrew Coppin wrote:
Ryan Ingram wrote:
Take a look at Data.Accessor on hackage:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/data-accessor
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/data-accessor-tem...
So, to summarise, it provides a datatype to encapsulate a pair of get/set functions, some infix sugar for using it, and some TH for autogenerating said data. Is that about right?
Exactly. 'modify' or (^:) is what you are looking for.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe