on f86155a help sign in
ormolu/data/examples/declaration/value/function/record-constructors-out.hs
27 lines 594 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
18 YetAnotherLongRecordName
19 { yetAnotherLongRecordFieldName = "a long string",
20 yetAnotherLongRecordFieldName =
21 Just
22 "a long string"
23 },
24 aLongRecordFieldName3 = do
25 foo
26 bar
27 }