Portability | Portable |
---|---|
Stability | Stable |
Maintainer | Chris Dornan <chris@chrisdornan.com> |
Safe Haskell | Safe |
Text.XHtml.BlockTable
Description
An XHTML combinator library
These combinators can be used to build formated 2D tables. The specific target usage is for HTML table generation.
- data BlockTable a
- single :: a -> BlockTable a
- above :: BlockTable a -> BlockTable a -> BlockTable a
- beside :: BlockTable a -> BlockTable a -> BlockTable a
- getMatrix :: BlockTable a -> [[(a, (Int, Int))]]
- showsTable :: Show a => BlockTable a -> ShowS
- showTable :: Show a => BlockTable a -> String
Datatypes
data BlockTable a Source
Instances
Show a => Show (BlockTable a) |
Contruction Functions
single :: a -> BlockTable aSource
Creates a (1x1) table entry
above :: BlockTable a -> BlockTable a -> BlockTable aSource
Composes tables vertically.
beside :: BlockTable a -> BlockTable a -> BlockTable aSource
Composes tables horizontally.
Investigation Functions
getMatrix :: BlockTable a -> [[(a, (Int, Int))]]Source
This is the other thing you can do with a Table; turn it into a 2D list, tagged with the (x,y) sizes of each cell in the table.
showsTable :: Show a => BlockTable a -> ShowSSource
showTable :: Show a => BlockTable a -> StringSource