
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
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?
I'll have a go at trying this later... Thanks.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- www.di.uminho.pt/~hpacheco