[Haskell-cafe] Record updates

Peter Verswyvelen bugfact at gmail.com
Mon Mar 30 17:46:05 EDT 2009


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 at 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-template
>>>
>>>
>> 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090330/acca8a7f/attachment.htm


More information about the Haskell-Cafe mailing list