aboutsummaryrefslogtreecommitdiff
path: root/haddock-library/fixtures/examples/table1.parsed
blob: 2fa58fd8a7789a22b2c7b16d753febe84c69c411 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
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 = DocAppend
                                                  (DocString " ")
                                                  (DocAppend
                                                     (DocMathDisplay
                                                        (concat
                                                           ["                  \n",
                                                            " f(n) = \\sum_{i=1}   \n",
                                                            " "]))
                                                     (DocString "                  ")),
                            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
                                                    (concat [" Header 2   \n", "            "]),
                              tableCellRowspan = 1},
                           TableCell
                             {tableCellColspan = 1,
                              tableCellContents = DocString
                                                    (concat [" Header 3 \n", "          "]),
                              tableCellRowspan = 1},
                           TableCell
                             {tableCellColspan = 1,
                              tableCellContents = DocString
                                                    (concat [" Header 4 \n", "          "]),
                              tableCellRowspan = 1}]]}