aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/fixtures/examples/table1.parsed
blob: 8b8908f4cff02fd7e63396f84787ab9969ad9e6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
DocTable
  Table
    {tableBodyRows = [TableRow
                        [TableCell
                           {tableCellColspan = 1,
                            tableCellContents = DocString "body row 1, column 1",
                            tableCellRowspan = 1},
                         TableCell
                           {tableCellColspan = 1,
                            tableCellContents = DocString "column 2",
                            tableCellRowspan = 1},
                         TableCell
                           {tableCellColspan = 1,
                            tableCellContents = DocString "column 3",
                            tableCellRowspan = 1},
                         TableCell
                           {tableCellColspan = 1,
                            tableCellContents = DocString "column 4",
                            tableCellRowspan = 1}],
                      TableRow
                        [TableCell
                           {tableCellColspan = 1,
                            tableCellContents = DocString "body row 2",
                            tableCellRowspan = 1},
                         TableCell
                           {tableCellColspan = 3,
                            tableCellContents = DocString "Cells may span columns.",
                            tableCellRowspan = 1}],
                      TableRow
                        [TableCell
                           {tableCellColspan = 1,
                            tableCellContents = DocString "body row 3",
                            tableCellRowspan = 1},
                         TableCell
                           {tableCellColspan = 1,
                            tableCellContents = DocString
                                                  (concat ["Cells may\n", "span rows.\n"]),
                            tableCellRowspan = 2},
                         TableCell
                           {tableCellColspan = 2,
                            tableCellContents = DocMathDisplay
                                                  (concat ["\n", "f(n) = \\sum_{i=1}\n"]),
                            tableCellRowspan = 2}],
                      TableRow
                        [TableCell
                           {tableCellColspan = 1,
                            tableCellContents = DocString "body row 4",
                            tableCellRowspan = 1}]],
     tableHeaderRows = [TableRow
                          [TableCell
                             {tableCellColspan = 1,
                              tableCellContents = DocString
                                                    (concat
                                                       ["Header row, column 1\n",
                                                        "(header rows optional)"]),
                              tableCellRowspan = 1},
                           TableCell
                             {tableCellColspan = 1,
                              tableCellContents = DocString "Header 2\n",
                              tableCellRowspan = 1},
                           TableCell
                             {tableCellColspan = 1,
                              tableCellContents = DocString "Header 3\n",
                              tableCellRowspan = 1},
                           TableCell
                             {tableCellColspan = 1,
                              tableCellContents = DocString "Header 4\n",
                              tableCellRowspan = 1}]]}