1 {-# LANGUAGE OverloadedLists #-}
2 {-# OPTIONS_GHC -Wno-orphans #-}
4 module Literate.Document.Table where
6 import Data.List qualified as List
7 import Literate.Document.Type
8 import Literate.Prelude
12 { tableHeads = Nothing
14 , tableRowsEvenOdd = False
17 tableTemplateFinal :: Table -> TableTemplate
18 tableTemplateFinal tbl
19 | tbl & tableTemplate & null = 1 & fr & LengthRelative & List.replicate columns
20 | otherwise = tbl & tableTemplate
25 [ row & tableRowColumns & List.length
26 | row <- tbl & tableRows
30 { tableRowColumns = []
34 { tableCellContent = ""
35 , tableCellJustify = JustificationCenter