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

Text.Layout.Table.Spec.LenSpec

Synopsis

Documentation

data LenSpec Source #

Determines how long a column will be.

Constructors

Expand 
Fixed Int 
ExpandUntil Int 
FixedUntil Int 
ExpandBetween Int Int 

Instances

Instances details
Default LenSpec Source #

The default LenSpec allows columns to use as much space as needed.

Instance details

Defined in Text.Layout.Table.Spec.LenSpec

Methods

def :: LenSpec

expand :: LenSpec Source #

Allows columns to use as much space as needed.

fixed :: Int -> LenSpec Source #

Fixes column length to a specific width.

expandUntil :: Int -> LenSpec Source #

The column will expand as long as it is smaller as the given width.

fixedUntil :: Int -> LenSpec Source #

The column will be at least as wide as the given width.

expandBetween :: Int -> Int -> LenSpec Source #

The column will be at least as wide as the first width, and will expand as long as it is smaller than the second.