Should the space between record constructor or updated expression and record field list exist?
data Rec type1 = Rec{field1 :: type1, field2 :: Type2}
f x@Rec{field1} = x{field2 = field1}
or
data Rec type1 = Rec {field1 :: type1, field2 :: Type2}
f x@Rec {field1} = x {field2 = field1}
?
Should the space between record constructor or updated expression and record field list exist?
or
?