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