Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Haskell] ANN: wl-pprint-1.0: Wadler/Leijen pretty printer

3 views
Skip to first unread message

Stefan O'Rear

unread,
Apr 15, 2007, 7:19:48 PM4/15/07
to has...@haskell.org
Announcing wl-pprint-1.0, the classic Wadler / Leijen pretty printing
combinators, now in 100% easier to use Cabalised form!

Synopsis:

PPrint is an implementation of the pretty printing combinators
described by Philip Wadler (1997). In their bare essence, the
combinators of Wadler are not expressive enough to describe some
commonly occurring layouts. The PPrint library adds new primitives to
describe these layouts and works well in practice.

The library is based on a single way to concatenate documents, which
is associative and has both a left and right unit. This simple design
leads to an efficient and short implementation. The simplicity is
reflected in the predictable behaviour of the combinators which make
them easy to use in practice.

Hackage-Url: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/wl-pprint-1.0
Darcs: http://members.cox.net/stefanor/wl-pprint/
Original-Docs: http://www.cs.uu.nl/~daan/pprint.html

Stefan
_______________________________________________
Haskell mailing list
Has...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Joel Reymont

unread,
Apr 15, 2007, 11:10:28 PM4/15/07
to Stefan O'Rear
Why should I use PPrint instead of the PJ/Hughes pretty printer that
comes with Haskell?

Thanks, Joel

On Apr 15, 2007, at 8:19 PM, Stefan O'Rear wrote:

> PPrint is an implementation of the pretty printing combinators
> described by Philip Wadler (1997). In their bare essence, the
> combinators of Wadler are not expressive enough to describe some
> commonly occurring layouts. The PPrint library adds new primitives to
> describe these layouts and works well in practice.

--
http://wagerlabs.com/

Stefan O'Rear

unread,
Apr 15, 2007, 11:46:08 PM4/15/07
to Joel Reymont
On Mon, Apr 16, 2007 at 12:10:01AM +0100, Joel Reymont wrote:
> On Apr 15, 2007, at 8:19 PM, Stefan O'Rear wrote:
> > PPrint is an implementation of the pretty printing combinators
> > described by Philip Wadler (1997). In their bare essence, the
> > combinators of Wadler are not expressive enough to describe some
> > commonly occurring layouts. The PPrint library adds new primitives to
> > describe these layouts and works well in practice.
>
> Why should I use PPrint instead of the PJ/Hughes pretty printer that
> comes with Haskell?

Wadler designed these combinators specifically in response to Hughes'
paper, and they are simpler in several ways. There is fundamentally
only one type of concatenation, indentation is always non-negative,
etc.

Stefan

Arthur van Leeuwen

unread,
Apr 16, 2007, 10:10:36 AM4/16/07
to has...@haskell.org
Stefan O'Rear <stefanor <at> cox.net> writes:

>
> Announcing wl-pprint-1.0, the classic Wadler / Leijen pretty printing
> combinators, now in 100% easier to use Cabalised form!
>

Goody! UU.PPrint is now on hackage! Regrettably, this does seem like
a bit of a waste of time, as UU.PPrint was already cabalised as part
of the Haskell Utrecht Tools at http://www.cs.uu.nl/wiki/HUT/
which also contains the parser combinators and DData, Daan
Leijen's datastructure library.

Doei, Arthur. (Who thinks Utrecht does too little marketing of its code :))

Duncan Coutts

unread,
Apr 16, 2007, 10:22:23 AM4/16/07
to Arthur van Leeuwen
On Mon, 2007-04-16 at 10:08 +0000, Arthur van Leeuwen wrote:

> Goody! UU.PPrint is now on hackage! Regrettably, this does seem like
> a bit of a waste of time, as UU.PPrint was already cabalised as part
> of the Haskell Utrecht Tools at http://www.cs.uu.nl/wiki/HUT/
> which also contains the parser combinators and DData, Daan
> Leijen's datastructure library.
>
> Doei, Arthur. (Who thinks Utrecht does too little marketing of its code :))

I'd like to note that uulib and uuagc have been included in Gentoo for
ages! :-)

Duncan

_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

0 new messages