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