If I have a record, say
type T = { value1 :: Int, value2 :: Number }, and I pattern match it in a function like this:
foo :: T -> Number
foo { value1: value1, value2: value2 } = toNumber value1 + value2
See how I assigned local variables using the same names as the record fields? Is there a shorthand for that?
Mike