I’m looking throught Record module and I like get, set, modify, etc functions, but I would like to know how would you define function set that would not by able to change type of label on record? I’m experimenting with using set and more restrictive typespec…
a_ = SProxy :: SProxy "a"
mset :: forall r l a. IsSymbol l => SProxy l -> a -> Record r -> Record r
mset = set
main :: Effect Unit
main = logShow $ mset a_ "String" { a : 1 }