xhtml-3000.2.0.5: An XHTML combinator library

PortabilityPortable
StabilityStable
MaintainerChris Dornan <chris@chrisdornan.com>
Safe HaskellSafe

Text.XHtml.BlockTable

Contents

Description

An XHTML combinator library

These combinators can be used to build formated 2D tables. The specific target usage is for HTML table generation.

Synopsis

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.