The dynamic-pp package
This library provides pretty-print operators similar to the set provided by the Wadler-Leijin pretty-printer. The main difference, however, is that it utilizes a dynamic programming algorithm for rendering. This slightly reduces the available combinators, but provides a layout engine that optimizes documents, minimizing their over-wrap and line count.
The dynamic programming algorithm has pathological cases that cause it to run in quadratic time; however, typical use on code-like programs should see better run times. In general, documents with many uses of the choose combinator will require more time to render.
This library also provides two simpler rendering engines for uses where the full optimal layout engine is not necessary. These engines are much simpler and consume fewer resources.
NOTE: This library is still in development. It may contain bugs, performance issues, and the interface may change.
|Dependencies||ansi-terminal, base (>=4.4.0 && <5), blaze-builder, bytestring, Cabal (>=1.16.0), hashable, unordered-containers, utf8-string [details]|
|Copyright||Copyright (c) 2015 Eric McCorkle. All rights reserved.|
|Maintainer||Eric McCorkle <email@example.com>|
|Source repository||head: git clone firstname.lastname@example.org:emc2/dynamic-pp.git|
|Uploaded||Sun Jul 19 19:15:10 UTC 2015 by emc2|
|Downloads||365 total (44 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs available [build log]
Last success reported on 2015-07-19 [all 1 reports]
Hackage Matrix CI
For package maintainers and hackage trustees