byline

Library for creating command-line interfaces (colors, menus, etc.) http://github.com/pjones/byline

Latest on Hackage:0.2.4.0

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 stackage.org to host generated Haddocks.

BSD2 licensed and maintained by Peter Jones

Byline

Build Status

Byline simplifies writing interactive terminal applications by building upon ansi-terminal and haskeline. This makes it possible to print messages and prompts that include terminal escape sequences such as colors that are automatically disabled when standard input is a file. It also means that Byline works on both POSIX-compatible systems and on Windows.

The primary features of Byline include printing messages, prompting for input, and generating custom menus. It was inspired by the highline Ruby library and the terminal library by Craig Roche.

Examples

Please see the example programs in the examples directory.

Changes

Version History

0.2.4.0 (March 19, 2017)

  • Update dependency bounds

  • Add Travis CI build status for supported versions of GHC

0.2.3.0 (November 1, 2016)

  • Increase upper bound on transformers package to 0.5 (Thanks to slycelote).

0.2.2.0 (June 9, 2016)

  • Build under LTS-5.15

0.2.1.0 (November 5, 2014)

  • Updated dependencies

0.2.0.0 (May 22, 2015)

  • Added the NoItems constructor for Choice to deal with menus that are asked to display an empty list.

  • Changes to build with GHC 7.8.4. and 7.10.1

0.1.0.0 (May 19, 2015)

  • Initial release.
comments powered byDisqus