safe-coloured-text-layout-0.2.0.0: Safely layout output coloured text
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Colour.Layout

Synopsis

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.

data Table Source #

Table with separator and background settings

Constructors

Table 

Fields

Instances

Instances details
Generic Table Source # 
Instance details

Defined in Text.Colour.Layout

Associated Types

type Rep Table :: Type -> Type #

Methods

from :: Table -> Rep Table x #

to :: Rep Table x -> Table #

Show Table Source # 
Instance details

Defined in Text.Colour.Layout

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #

Eq Table Source # 
Instance details

Defined in Text.Colour.Layout

Methods

(==) :: Table -> Table -> Bool #

(/=) :: Table -> Table -> Bool #

Validity Table Source # 
Instance details

Defined in Text.Colour.Layout

Methods

validate :: Table -> Validation #

type Rep Table Source # 
Instance details

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

Instances details
Generic TableBackground Source # 
Instance details

Defined in Text.Colour.Layout

Associated Types

type Rep TableBackground :: Type -> Type #

Show TableBackground Source # 
Instance details

Defined in Text.Colour.Layout

Eq TableBackground Source # 
Instance details

Defined in Text.Colour.Layout

Validity TableBackground Source # 
Instance details

Defined in Text.Colour.Layout

type Rep TableBackground Source # 
Instance details

Defined in Text.Colour.Layout

type Rep TableBackground = D1 ('MetaData "TableBackground" "Text.Colour.Layout" "safe-coloured-text-layout-0.2.0.0-D2Rdg9zehunBalPMr5MXp7" 'False) (C1 ('MetaCons "SingleColour" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Colour)) :+: C1 ('MetaCons "Bicolour" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Colour)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Colour))))

renderTable :: Table -> [Chunk] Source #

Render a table to chunks that can be rendered to text.