table-layout-1.0.0.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

horizontalDetailLine Source #

Arguments

:: StringBuilder b 
=> String

The space characters that are used as padding.

-> String

The space characters that are used as padding in the row header.

-> String

The delimiter that is used on the left side.

-> String

The delimiter that is used on the right side.

-> String

The delimiter that is used for the row header separator.

-> (Maybe b, Row (Either String b))

Optionally a row header, along with a row of builders and separators.

-> b

The formatted line as a StringBuilder.

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

horizontalContentLine Source #

Arguments

:: StringBuilder b 
=> String

The delimiter that is used on the left side.

-> String

The delimiter that is used on the right side.

-> String

The delimiter that is used on the row header separator.

-> (Maybe b, Row (Either String b))

A row of builders and separators.

-> b 

Render a line with actual content.