parsonsmatt / prairie

First Class Record Fields in Haskell
BSD 3-Clause "New" or "Revised" License
17 stars 4 forks source link

Depending on record field selectors makes generated code brittle #10

Open evanrelf opened 6 months ago

evanrelf commented 6 months ago

Depending on a record's field names / field selectors makes the generated code brittle. For example:

If it's possible to use the fields by pattern matching / constructing them with positional arguments on the record's data constructor, I think that would fix this issue.