Haskell Pretty-printer library
Haskell
Latest commit 7653ca5 Jun 16, 2016 @dterei dterei committed on GitHub Merge pull request #38 from ivan-m/patch-1
Fix up an error in paper title
Failed to load latest commit information.
docs Rename todo document Jun 1, 2016
src/Text Fix up an error in paper title Jun 8, 2016
tests #32, add a test that rendering the prefix of an infinite document pro… Jun 2, 2016
.gitignore Add stack build system support. Feb 29, 2016
.travis.yml test haddock generation in CI Mar 13, 2015
CHANGELOG.md Bump to version 1.1.3.3. Feb 29, 2016
LICENSE Remove non-pretty-printing stuff (of base), and rename package to "pr… May 18, 2007
README.md
Setup.hs
pretty.cabal
stack.yaml Add stack build system support. Feb 29, 2016

README.md

Pretty : A Haskell Pretty-printer library

Hackage Hackage Dependencies BSD3 License Build

Pretty is a pretty-printing library, a set of API's that provides a way to easily print out text in a consistent format of your choosing. This is useful for compilers and related tools.

It is based on the pretty-printer outlined in the paper 'The Design of a Pretty-printing Library' by John Hughes in Advanced Functional Programming, 1995. It can be found here.

Licensing

This library is BSD-licensed.

Building

The library uses the Cabal build system, so building is simply a matter of running:

cabal sandbox init
cabal install "QuickCheck >= 2.5 && < 3"
cabal install --only-dependencies
cabal configure --enable-tests
cabal build
cabal test

We have to install QuickCheck manually as otherwise Cabal currently throws an error due to the cyclic dependency between pretty and QuickCheck.

If cabal test freezes, then run cabal test --show-details=streaming instead. This is due to a bug in certain versions of Cabal.

Get involved!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://github.com/haskell/pretty.git

Authors

This library is maintained by David Terei, code@davidterei.com. It was originally designed by John Hughes's and since heavily modified by Simon Peyton Jones.