purescript / purescript-record

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

Remove Record.ST.new #77

Closed kl0tl closed 3 years ago

kl0tl commented 3 years ago

Description of the change

There’s no way to add fields to a mutable record, this would require the ST monad to track the added fields with row indices, so Record.ST.new can only be frozen with Record.ST.freeze or Record.ST.run, which is lot less convenient than {} 😅


Checklist:

JordanMartinez commented 3 years ago

Should this PR just be updated to remove the ST module completely?