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

Text.Layout.Table.Spec.AlignSpec

Synopsis

Documentation

data AlignSpec Source #

Determines whether a column will align at a specific letter.

Constructors

AlignOcc OccSpec 
NoAlign 

Instances

Instances details
Default AlignSpec Source #

No alignment is the default.

Instance details

Defined in Text.Layout.Table.Spec.AlignSpec

Methods

def :: AlignSpec #

noAlign :: AlignSpec Source #

Do not align text.

occSpecAlign :: OccSpec -> AlignSpec Source #

Construct an AlignSpec by giving an occurence specification.

predAlign :: (Char -> Bool) -> AlignSpec Source #

Align text at the first match of a predicate.

charAlign :: Char -> AlignSpec Source #

Align text at the first occurence of a given Char.