purescript / purescript-record

Functions for working with records and polymorphic labels
BSD 3-Clause "New" or "Revised" License
70 stars 31 forks source link

Builder API #8

Closed paf31 closed 7 years ago

paf31 commented 7 years ago

Like we have builders for arrays, we should have one for records. This would make it more efficient to build records in type class instances based on things like RowList iteration.

Prototype: http://try.purescript.org/?backend=core&gist=27a137278caa203b3ebbd42f7386a0db

I'd like to investigate the use of linear types here as well, since I think they could improve things further.