
25 Jul
2009
25 Jul
'09
9:45 p.m.
Ian Lynagh wrote:
Hi all,
I've made a ticket and proposal page for making the labelled field syntax stricter, e.g. making this illegal:
data A = A {x :: Int}
y :: Maybe A y = Just A {x = 5}
and requiring this instead:
data A = A {x :: Int}
y :: Maybe A y = Just (A {x = 5})
and, as currently, "(f some expression) {x=5}" still requires those parentheses also? Although depending on the surroundings, after this proposal, it might need to become "((f some expression) {x=5})" -Isaac