module Text.Layout.Table.Primitives.Column
( ColSpec
, lenSpec
, position
, alignSpec
, cutMark
, column
) where
import Data.Default.Class
import Text.Layout.Table.Position
import Text.Layout.Table.Primitives.AlignSpec
import Text.Layout.Table.Primitives.Basic
import Text.Layout.Table.Primitives.LenSpec
data ColSpec
= ColSpec
{ lenSpec :: LenSpec
, position :: Position H
, alignSpec :: AlignSpec
, cutMark :: CutMark
}
instance Default ColSpec where
def = column def def def def
column :: LenSpec -> Position H -> AlignSpec -> CutMark -> ColSpec
column = ColSpec