pandoc-csv2table-1.0.4: Convert CSV to Pandoc Table Markdown

CopyrightCopyright (C) 2015 Wasif Hasan Baig
LicenseMIT
MaintainerWasif Hasan Baig <pr.wasif@gmail.com>
Stabilityalpha
Safe HaskellSafe
LanguageHaskell2010

Text.Table.Definition

Description

Definition of Table data structure for internal representation.

Synopsis

Documentation

data TableType Source

Type of the Table.

Constructors

Simple 
Multiline 
Grid 
Pipe 

data CaptionPos Source

Position of the caption.

Constructors

BeforeTable 
AfterTable 

data Align Source

Alignment of a Column in the Table. Not all TableTypes support column alignments.

Instances

data Cell Source

A cell in a table has column span, cell width, cell alignment and the number of lines.

  • Span: Number of lines spanned by the cell.
  • Width: Width of the column this cell is contained inside
  • Align: Alignment of the content inside the cells
  • Lines: A list of strings where each string represents a line

Constructors

Cell Span Width Align Lines 

Instances

data Row Source

A Row contains a list of Cells.

Constructors

Row [Cell] 

Instances

data Column Source

A Column contain information about its width and alignment.

  • Width: Character length of the widest Cell in a Column.
  • Align: Alignment of the cells inside this column

Constructors

Column Width Align 

Instances

data Header Source

A Header contains a Row if present, otherwise NoHeader.

Constructors

Header Row 
NoHeader 

Instances

data Table Source

A Table has a caption, information about each column's width and alignment, either a header with a row or no header, and a series of rows.

Constructors

Table Caption [Column] Header [Row] 

Instances

type Span = Int Source