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