r/purescript • u/xalyama • Mar 02 '18
SubRecords in Purescript
https://rubenpieters.github.io/programming/purescript/2018/03/02/subrecord-purescript.html
3
Upvotes
r/purescript • u/xalyama • Mar 02 '18
View all comments
Show parent comment
1
u/natefaubion Mar 03 '18
It's probably not that it doesn't compile, it's that
Uniondoesn't work the way you are expecting it to (it introduces duplicates), and the type ofRecord.mergeis dubious to rely on it solely. There's a PR which nubs the duplicates https://github.com/purescript/purescript-record/pull/40