I hope Haskell prime will be a bit more &quot;first class&quot; when it comes to records.<div><div><div><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 11:14 PM, Henning Thielemann <span dir="ltr">&lt;<a href="mailto:lemming@henning-thielemann.de">lemming@henning-thielemann.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Sun, 29 Mar 2009, Andrew Coppin wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ryan Ingram wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Take a look at Data.Accessor on hackage:<br>
<br>
<a href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/data-accessor" target="_blank">http://hackage.haskell.org/cgi-bin/hackage-scripts/package/data-accessor</a><br>
<a href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/data-accessor-template" target="_blank">http://hackage.haskell.org/cgi-bin/hackage-scripts/package/data-accessor-template</a><br>
<br>
</blockquote>
<br>
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?<br>
</blockquote>
<br></div>
Exactly. &#39;modify&#39; or (^:) is what you are looking for.<div><div></div><div class="h5"><br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div></div></div>