rainbox

Two-dimensional box pretty printing, with colors

http://www.github.com/massysett/rainbox

Version on this page:0.18.0.10
LTS Haskell 22.13:0.26.0.0
Stackage Nightly 2024-03-14:0.26.0.0
Latest on Hackage:0.26.0.0

See all snapshots rainbox appears in

BSD-3-Clause licensed by Omari Norman
Maintained by [email protected]
This version can be pinned in stack with:rainbox-0.18.0.10@sha256:46bb820efd8587d008ee1677ae79d9d6a122009e741e100ae7bddf8f496df865,2605

Module documentation for 0.18.0.10

Used by 1 package in lts-8.5(full list with versions):

Rainbox

Provides pretty printing of boxes in two dimensions. Rainbox is useful for console programs that need to format tabular data.

On Hackage

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

Documentation

In addition to the Haddock documentation, a tutorial is available in the Rainbox.Tutorial module.

Portability

There’s nothing unportable in Rainbox; however, it does use Rainbow which is only tested on UNIX-like systems.

Tests

You can simply use “cabal test”. However, I recommend that you do:

cabal configure --enable-tests
cabal build
dist/build/rainbox-properties/rainbox-properties
dist/build/rainbox-visual/rainbox-visual

The last test, rainbox-visual, relies on you to examine the output and make sure it looks correct.

Tests are also run on Travis:

Build Status

and although you can see the output of rainbox-visual there, it’s not formatted quite right on Travis.

At this time, Rainbox is verified to work with GHC versions in the 7.8 series and the 7.10 series.

License

Rainbox is licensed under the BSD license; please see the LICENSE file.