Render as a default-settings table.
Modulesafe-coloured-text-layout-0.2.0.1Haskell2010
Text.Colour.Layout
- 2 types
- 5 values
- Packagesafe-coloured-text-layout-0.2.0.1
- Exports7
- LanguageHaskell2010
- LicenceMIT
- SourceLayout.hs
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
Constructors
TabletableCells :: [[[Chunk]]]A list of rows. They must be of the same total length.
tableColumnSeparator :: ChunktableBackground :: Maybe TableBackground
Instances5Eq, Show, Generic, Validity, Rep
Eq TableDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.LayoutShow TableDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.LayoutGeneric TableDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.LayoutValidity TableDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.Layouttype Rep Table = D1 ('MetaDataDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.Layout"Table"
"Text.Colour.Layout"
"safe-coloured-text-layout-0.2.0.1-ZULUetjGGZ61C9iEG47jZ"
'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)))))
Instances5Eq, Show, Generic, Validity, Rep
Eq TableBackgroundDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.LayoutShow TableBackgroundDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.LayoutGeneric TableBackgroundDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.LayoutValidity TableBackgroundDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.Layouttype Rep TableBackground = D1 ('MetaDataDefined in safe-coloured-text-layout-0.2.0.1 · Text.Colour.Layout"TableBackground"
"Text.Colour.Layout"
"safe-coloured-text-layout-0.2.0.1-ZULUetjGGZ61C9iEG47jZ"
'False) (C1 ('MetaCons"SingleColour"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Colour)) :+: C1 ('MetaCons"Bicolour"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Colour)) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Colour))))
Render a table to chunks that can be rendered to text.