<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I somehow missed the preceding discussion, so I'll comment on what I've seen so far.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think the most reasonable default is O(1) for lookup and O(n) for<br>
extension, like in Nikita Volkov's record package. It is quite unfortunate<br>
that this package limits the number of fields! If GHC would offer generic<br>
support for tuples of arbitrary size (with the same efficiency as today)<br>
this limitation could be avoided and all would be well.</blockquote><div><br></div><div>Currently "record" is limited to up to 24 fields. However it was just an arbitrary number that I've chosen. No part of GHC limits us to that number. The only reason I'm not introducing bigger arities is that unfortunately the compilation time of the "record" library grows exponentially in relation to the highest arity supported. I expect, that limitation could be lifted once/if the ideas behind the library get implemented as an extension to GHC.</div></div></div></div>