purescript / purescript-record

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

Alternative `build` for building a record from scratch #52

Closed kl0tl closed 4 years ago

kl0tl commented 5 years ago

Hi everyone! 👋

Would anyone be opposed to a build' :: Builder {} { | row } -> { | row } function to build a record from scratch? The implementation is only flip build $ {} but it’s a convenient little function to compose in some pointfree scenarios.

hdgarrood commented 5 years ago

I think this is probably justifiable, although I'd suggest calling it buildFromScratch or something instead; think primes are best avoided in library APIs.