Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- layoutAsTable :: [[[Chunk]]] -> [Chunk]
- layoutAsTableLines :: [[[Chunk]]] -> [[Chunk]]
- table :: [[[Chunk]]] -> Table
- data Table = Table {
- tableCells :: [[[Chunk]]]
- tableColumnSeparator :: Chunk
- tableBackground :: Maybe TableBackground
- data TableBackground
- renderTable :: Table -> [Chunk]
- renderTableLines :: Table -> [[Chunk]]
Documentation
layoutAsTable :: [[[Chunk]]] -> [Chunk] Source #
Render as a default-settings table.
layoutAsTableLines :: [[[Chunk]]] -> [[Chunk]] Source #
table :: [[[Chunk]]] -> Table Source #
Make a table with default settings
You can then update table settings by changing the fields in the resulting Table
.
Table with separator and background settings
Table | |
|
Instances
Generic Table Source # | |
Show Table Source # | |
Eq Table Source # | |
Validity Table Source # | |
Defined in Text.Colour.Layout validate :: Table -> Validation # | |
type Rep Table Source # | |
Defined in Text.Colour.Layout type Rep Table = D1 ('MetaData "Table" "Text.Colour.Layout" "safe-coloured-text-layout-0.2.0.0-D2Rdg9zehunBalPMr5MXp7" 'False) (C1 ('MetaCons "Table" 'PrefixI 'True) (S1 ('MetaSel ('Just "tableCells") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[[Chunk]]]) :*: (S1 ('MetaSel ('Just "tableColumnSeparator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Chunk) :*: S1 ('MetaSel ('Just "tableBackground") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TableBackground))))) |
data TableBackground Source #
Instances
renderTable :: Table -> [Chunk] Source #
Render a table to chunks that can be rendered to text.
renderTableLines :: Table -> [[Chunk]] Source #