pandoc-csv2table-1.0.7: 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 
Instances
Eq TableType Source # 
Instance details

Defined in Text.Table.Definition

Show TableType Source # 
Instance details

Defined in Text.Table.Definition

data CaptionPos Source #

Position of the caption.

Constructors

BeforeTable 
AfterTable 
Instances
Show CaptionPos Source # 
Instance details

Defined in Text.Table.Definition

data Align Source #

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

Instances
Show Align Source # 
Instance details

Defined in Text.Table.Definition

Methods

showsPrec :: Int -> Align -> ShowS #

show :: Align -> String #

showList :: [Align] -> ShowS #

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
Show Cell Source # 
Instance details

Defined in Text.Table.Definition

Methods

showsPrec :: Int -> Cell -> ShowS #

show :: Cell -> String #

showList :: [Cell] -> ShowS #

data Row Source #

A Row contains a list of Cells.

Constructors

Row [Cell] 
Instances
Show Row Source # 
Instance details

Defined in Text.Table.Definition

Methods

showsPrec :: Int -> Row -> ShowS #

show :: Row -> String #

showList :: [Row] -> ShowS #

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
Show Column Source # 
Instance details

Defined in Text.Table.Definition

data Header Source #

A Header contains a Row if present, otherwise NoHeader.

Constructors

Header Row 
NoHeader 
Instances
Show Header Source # 
Instance details

Defined in Text.Table.Definition

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
Show Table Source # 
Instance details

Defined in Text.Table.Definition

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #

type Span = Int Source #

type Width = Int Source #

type Lines = [String] Source #