[Haskell-cafe] [ANN] rainbox - print colorful text boxes - good for tabular data

Omari Norman omari at smileystation.com
Mon Mar 24 02:04:36 UTC 2014


Rainbox helps you create (possibly) colorful text boxes for printing
to a UNIX terminal.  It uses the rainbow [1] library to permit use of
8 or 256 colors.

Rainbox is great for formatting tabular data.  One module, Rainbox,
permits you to make simple grids--like spreadsheets that do not allow
you to split or merge cells.  Another module, Rainbox.Box, lets you
create boxes of arbitrary complexity.

Rainbox is similar to the boxes library [2] but unlike Boxes it's easy
to use colors with Rainbox.

The Haddocks for both modules will get you started; there is also a
tutorial for the simple grid model in the Rainbox.Tutorial module.
That file is written in literate Haskell, which HsColour does not fare
so well with, so it makes more sense in your text editor or on Github:

https://github.com/massysett/rainbox/blob/master/lib/Rainbox/Tutorial.lhs

Rainbox is here:

http://hackage.haskell.org/package/rainbox

--Omari

[1] http://hackage.haskell.org/package/rainbow

[2] http://hackage.haskell.org/package/boxes


More information about the Haskell-Cafe mailing list