Is it possible to apply anonymous function arguments to nested records somehow in the followign way?
type UName = {fname :: String, lname :: String}
type XName = { xname :: UName, addr :: String}
updateU = _ { xname : { fname : _ } } -- not ok
-- or
updateU = _ { xname.fname = _ } -- not ok
-- or
updateU = _ { xname : fname = _ } } -- not ok
Above trials say that context is invalid. Aim is to implement:
updateU = \x -> { xname : { fname : x } }