-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Table layout -- -- Text.Tabl arranges multiple Text instances into a table layout while -- providing means of alignment visual decoration both horizontally and -- vertically. @package tabl @version 1.0.3 -- | Text.Tabl arranges multiple Text instances into a table layout while -- providing means of alignment, and visual decoration both horizontally -- and vertically. module Text.Tabl -- | Presentation style that is used to define the alignment of each column -- of the table. data Alignment -- | left alignment AlignLeft :: Alignment -- | centre AlignCentre :: Alignment -- | right alignment AlignRight :: Alignment -- | Decoration style that defines which lines (horizontal or vertical) -- will be visible in the resulting table. data Decoration -- | no lines DecorNone :: Decoration -- | all lines DecorAll :: Decoration -- | inner lines DecorInner :: Decoration -- | outer lines DecorOuter :: Decoration -- | only certain lines DecorOnly :: [Int] -> Decoration -- | all but certain lines DecorExcept :: [Int] -> Decoration -- | union of more decorations DecorUnion :: [Decoration] -> Decoration -- | intersection of more decorations DecorIsect :: [Decoration] -> Decoration -- | Output environment that declares the way that the table will be -- rendered. data Environment -- | ASCII-art suitable for the command-line EnvAscii :: Environment -- | LaTeX source code EnvLatex :: Environment -- | Create a table layout based on the specified output environment, -- decorations and alignments. tabl :: Environment -> Decoration -> Decoration -> [Alignment] -> [[Text]] -> Text