tabl-1.0.3: Table layout

Copyright(c) 2016-2017 Daniel Lovasko
LicenseBSD2
MaintainerDaniel Lovasko <daniel.lovasko@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Text.Tabl

Description

Text.Tabl arranges multiple Text instances into a table layout while providing means of alignment, and visual decoration both horizontally and vertically.

Synopsis

Documentation

data Alignment Source #

Presentation style that is used to define the alignment of each column of the table.

Constructors

AlignLeft

left alignment

AlignCentre

centre

AlignRight

right alignment

data Decoration Source #

Decoration style that defines which lines (horizontal or vertical) will be visible in the resulting table.

Constructors

DecorNone

no lines

DecorAll

all lines

DecorInner

inner lines

DecorOuter

outer lines

DecorOnly [Int]

only certain lines

DecorExcept [Int]

all but certain lines

DecorUnion [Decoration]

union of more decorations

DecorIsect [Decoration]

intersection of more decorations

data Environment Source #

Output environment that declares the way that the table will be rendered.

Constructors

EnvAscii

ASCII-art suitable for the command-line

EnvLatex

LaTeX source code

tabl Source #

Arguments

:: Environment

output environment

-> Decoration

horizontal decoration

-> Decoration

vertical decoration

-> [Alignment]

column alignments

-> [[Text]]

table cell data

-> Text

final layout

Create a table layout based on the specified output environment, decorations and alignments.