[Haskell-cafe] Record updates

Hugo Pacheco hpacheco at gmail.com
Sun Mar 29 09:32:24 EDT 2009


There is a page for extensible records in the wiki:

http://www.haskell.org/haskellwiki/Extensible_record

Haskell's records system has many insuficiencies.
Some libraries (see grapefruit or HaskellDB) encode records as
classes, but although some proposals Haskell still lacks a good
implementation for extensible and updatable records.

On Sun, Mar 29, 2009 at 10:41 AM, Andrew Coppin
<andrewcoppin at btinternet.com> 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?
>
> I'll have a go at trying this later... Thanks.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
www.di.uminho.pt/~hpacheco


More information about the Haskell-Cafe mailing list