rainbox: Two-dimensional box pretty printing, with colors

[ bsd3, library, system ] [ Propose Tags ]

Prints boxes in two dimensions, with colors. Boxes are automatically padded with necessary whitespace.

For more information, please see the Haddock documentation and

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


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
mosaic

Build the rainbox-mosaic executable.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.2.0.0, 0.4.0.0, 0.4.0.2, 0.4.0.4, 0.6.0.0, 0.6.0.2, 0.8.0.0, 0.10.0.0, 0.10.0.2, 0.12.0.0, 0.14.0.0, 0.16.0.0, 0.18.0.0, 0.18.0.2, 0.18.0.4, 0.18.0.6, 0.18.0.8, 0.18.0.10, 0.20.0.0, 0.22.0.0, 0.24.0.0, 0.24.2.0, 0.24.4.0, 0.26.0.0
Change log changelog
Dependencies array (>=0.4.0.0), base (>=4.5.0.0 && <5), QuickCheck (>=2.6 && <2.7), rainbow (>=0.14.0.0 && <0.15), random (>=1.0.0.0), tasty (>=0.8), tasty-quickcheck (>=0.8), text (>=0.11.3.1), transformers (>=0.3.0.0) [details]
License BSD-3-Clause
Copyright 2014 Omari Norman
Author Omari Norman
Maintainer omari@smileystation.com
Category Text
Home page http://www.github.com/massysett/rainbox
Source repo head: git clone https://github.com/massysett/rainbox.git
Uploaded by OmariNorman at 2014-04-16T01:53:03Z
Distributions LTSHaskell:0.26.0.0, NixOS:0.26.0.0, Stackage:0.26.0.0
Reverse Dependencies 3 direct, 0 indirect [details]
Executables rainbox-mosaic
Downloads 15184 total (65 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]

Readme for rainbox-0.4.0.2

[back to package description]

Rainbox

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

Documentation

In addition to the Haddock documentation, a tutorial is available in the Rainbox.Tutorial module. This module is best read in your text editor or through the Github web interface, as it is written in literate Haskell, which HsColour does not fare so well with.

Portability

There's nothing unportable in Rainbox; however, it does use Rainbow which works only on UNIX-like systems because it uses the UNIX terminfo library. I only develop for UNIX-like systems because they are the only ones I use.

Tests

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

cabal configure --enable-tests
cabal build
dist/build/rainbox-test/rainbox-test
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 7.4.1, 7.6.3, and 7.8.2.

License

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