Text.PrettyPrint bug or doc bug

Marcus D. Gabriel marcus at gabriel.name
Wed Feb 24 07:10:38 EST 2010


The documentation for Text.PrettyPrint.HughesPJ states
that vcat is the "List version of $$", but it works as
the list version ($+$).  In the source code, this is

    vcat = reduceAB . foldr (above_' True) empty

instead of

    vcat = reduceAB . foldr (above_' False) empty

So either the documentation needs to be changed or
the code.  It would be nice to have both versions.

- Marcus

More information about the Libraries mailing list