Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- layoutAsTable :: [[Chunk]] -> [Chunk]
- table :: [[Chunk]] -> Table
- data Table = Table {}
- data TableBackground
- renderTable :: Table -> [Chunk]
Documentation
layoutAsTable :: [[Chunk]] -> [Chunk] Source #
Render as a default-settings table.
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.1.0.0-96eXKx0A9SS1JD6Si7rES5" '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.