I use wl-pprint because the standard PrettyPrinter does not have functionality. Everything is fine, except for the empty document in the vcat function (the same with the <$> combinator).
The correct behavior:
import Text.PrettyPrint > vcat[text "a", empty, text "b"] a b
wl-pprint shows an extra blank line:
import Text.PrettyPrint.Leijen > vcat[text "a", empty, text "b"] a b
So what can I do? It is not possible to filter the vcat list because there is no Eq instance for the Doc .
source share