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

Text.Layout.Table.Primitives.CellMod

Synopsis

Documentation

data CellMod a Source #

Provide all the information necessary to compare resulting dimensions and to turn it into a StringBuilder.

Constructors

CellMod 

Instances

Instances details
Functor CellMod Source # 
Instance details

Defined in Text.Layout.Table.Primitives.CellMod

Methods

fmap :: (a -> b) -> CellMod a -> CellMod b

(<$) :: a -> CellMod b -> CellMod a

Show a => Show (CellMod a) Source # 
Instance details

Defined in Text.Layout.Table.Primitives.CellMod

Methods

showsPrec :: Int -> CellMod a -> ShowS

show :: CellMod a -> String

showList :: [CellMod a] -> ShowS

Eq a => Eq (CellMod a) Source # 
Instance details

Defined in Text.Layout.Table.Primitives.CellMod

Methods

(==) :: CellMod a -> CellMod a -> Bool

(/=) :: CellMod a -> CellMod a -> Bool

Ord a => Ord (CellMod a) Source # 
Instance details

Defined in Text.Layout.Table.Primitives.CellMod

Methods

compare :: CellMod a -> CellMod a -> Ordering

(<) :: CellMod a -> CellMod a -> Bool

(<=) :: CellMod a -> CellMod a -> Bool

(>) :: CellMod a -> CellMod a -> Bool

(>=) :: CellMod a -> CellMod a -> Bool

max :: CellMod a -> CellMod a -> CellMod a

min :: CellMod a -> CellMod a -> CellMod a

padCellLeft :: Int -> a -> CellMod a Source #

Describe a padding operation on the left side. The padding may not be negative.

padCellRight :: Int -> a -> CellMod a Source #

Describe a padding operation on the right side. The padding may not be negative.

padCell :: Int -> Int -> a -> CellMod a Source #

Describe a padding operation. The padding may not be negative.

trimCell :: Int -> Int -> Int -> Int -> a -> CellMod a Source #

Describe a trim operation. None of the arguments may be negative.

trimCellLeft :: Int -> Int -> a -> CellMod a Source #

Describe a trim operation on the left side. None of the arguments may be negative.

trimCellRight :: Int -> Int -> a -> CellMod a Source #

Describe a trim operation on the right side. None of the arguments may be negative.

modifyCellWithCutMarkLen :: Int -> Int -> Int -> Int -> a -> CellMod a Source #

modifyCell :: Int -> Int -> a -> CellMod a Source #

Given adjustments for the left and the right side, either pad or trim. Negative values will trim, positive values will pad.