Haskell has a syntax for this: http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#record-puns