table-layout-0.9.1.0: Format tabular data as grid or table.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Layout.Table.Primitives.Table

Description

This module provides primitives for generating tables. Tables are generated line by line thus the functions in this module produce StringBuilders that contain a line.

Synopsis

Documentation

hLineDetail Source #

Arguments

:: StringBuilder b 
=> Char

The space character that is used as padding.

-> Char

The delimiter that is used on the left side.

-> Char

The delimiter that is used in between cells.

-> Char

The delimiter that is sued on the right side.

-> Row b

A row of builders.

-> b

The formatted line as a StringBuilder.

Draw a horizontal line that will use the delimiters around the appropriately and visually separate by hSpace.

hLine Source #

Arguments

:: StringBuilder b 
=> Char

The space character that is used as padding.

-> Char

The delimiter that is used for everything.

-> Row b

A row of builders.

-> b

The formatted line as a StringBuilder.

A simplified version of hLineDetail that will use the same delimiter for everything.

hLineContent Source #

Arguments

:: StringBuilder b 
=> Char

The delimiter that is used for everything.

-> Row b

A row of builders.

-> b 

Render a line with actual content.