Format tabular data as grid or table.

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD-3-Clause licensed by Moritz Bruder
Maintained by

`table-layout` is a library for text-based table layout and cell formatting with the following features:

  • Set a policy for each column to determine the width.

  • Position content in a column at a certain position.

  • Align content in a column at a character occurence.

  • Highlight trimmed content with cut marks.

  • Draw fancy tables with optional headers and user styles.

  • Automatically justify text and create multi-line table cells.

The module Text.Layout.Table contains everything that is required. However, all of the intermediate functionality is also exposed which makes it easy to create something completely new. A small tutorial is provided in the file.