tabular

Two-dimensional data tables with rendering functions

http://hub.darcs.net/kowey/tabular

Version on this page:0.2.2.7
LTS Haskell 22.41:0.2.2.8@rev:1
Stackage Nightly 2024-11-12:0.2.2.8@rev:1
Latest on Hackage:0.2.2.8@rev:1

See all snapshots tabular appears in

BSD-3-Clause licensed by Eric Kow
Maintained by Eric Kow
This version can be pinned in stack with:tabular-0.2.2.7@sha256:8a7c1ffb6d596bb06812d5dd9c71a514ffc5347151cde02c0fde681dc8a2d299,2380
Depends on 4 packages(full list with versions):
Used by 3 packages in lts-13.2(full list with versions):

Tabular provides a Haskell representation of two-dimensional data tables, the kind that you might find in a spreadsheet or or a research report. It also comes with some default rendering functions for turning those tables into ASCII art, simple text with an arbitrary delimiter, CSV, HTML or LaTeX.

Below is an example of the kind of output this library produces. The tabular package can group rows and columns, each group having one of three separators (no line, single line, double line) between its members.

    || memtest 1 | memtest 2 ||  time test  | time test 2
====++===========+===========++=============+============
A 1 ||       hog |  terrible ||        slow |      slower
A 2 ||       pig |   not bad ||        fast |     slowest
----++-----------+-----------++-------------+------------
B 1 ||      good |     awful || intolerable |    bearable
B 2 ||    better | no chance ||    crawling |     amazing
B 3 ||       meh |   well... ||  worst ever |          ok