Unexpected behaviour in Text.PrettyPrint.HughesPJ

Axel Simon A.Simon at kent.ac.uk
Fri Sep 23 12:59:33 EDT 2005

On Fri, 2005-09-23 at 14:22 +0200, Anders Höckersten wrote:
> foo bar
> I argue that (text "" == empty) and that I should be able to use them
> synonymously. The point I think I'm trying to make is that I have used
> this pretty printing library for a while now, and I have never had to
> worry about the precedence of the operators before.
> As Simon pointed out the library could use some improvement, but with my
> current workload this is certainly not something I can do. Another idea
> would be replacing Text.PrettyPrint.HughesPJ with some other pretty
> printing library. Some very shallow searching reveals this[1] which
> seems to be an improvement on what we have today. 
> Cheers,
> Anders
> [1] http://www.cs.uu.nl/~daan/pprint.html

There's also a Pretty-Printing library by Olaf Chitil which should is
interesting if you need to output a large amount of text.


(look for "Pretty")


More information about the Libraries mailing list