purescript / purescript-record

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

Add Builder.passThrough #47

Closed bklaric closed 6 years ago

bklaric commented 6 years ago

I have a use case where in one branch I want to insert a field using the record builder, while in another branch I want to keep it unchanged. This PR addresses the "keep it unchanged" part by adding the passThrough builder.

bklaric commented 6 years ago

Nvm, I just realized I could just use identity directly. :see_no_evil: