[Haskell-cafe] Record updates

Andrew Coppin andrewcoppin at btinternet.com
Sun Mar 29 06:41:54 EDT 2009


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.



More information about the Haskell-Cafe mailing list