on d579a48 help sign in
ormolu/data/examples/declaration/value/function/record-constructors-out.hs
31 lines 627 B history raw
1foo = Foo {a = 3}
3bar =
4 Bar
5 { abc = foo,
6 def = Foo {a = 10}
7 }
9baz = Baz {}
11sym = Foo {(+) = 3}
13aLongVariableName =
14 ALongRecordName
15 { short = baz,
16 aLongRecordFieldName =
17 YetAnotherLongRecordName
18 { yetAnotherLongRecordFieldName = "a long string"
19 },
20 aLongRecordFieldName2 =
21 Just
22 YetAnotherLongRecordName
23 { yetAnotherLongRecordFieldName = "a long string",
24 yetAnotherLongRecordFieldName =
25 Just
26 "a long string"
27 },
28 aLongRecordFieldName3 = do
29 foo
30 bar
31 }