`prettyprinter-compat-ansi-wl-pprint ` is not quite a drop-in replacement as claimed
georgefst opened this issue · comments
George Thomas commented
This was noticed in ekmett/ansi-wl-pprint#32 (comment), but I've found some other incompatibilities:
- There's no
Pretty a => Pretty (Maybe a)
instance, which old code may rely on. - We have
Doc = Doc AnsiStyle
, which means that any existingPretty
instances which use basic functions liketext
no longer compile, sinceprettyprinter
'spretty
has to be annotation-polymorphic.
These are not easily solved, so I think the README ought to just be clearer about the limitations.
This has caused issues for some ansi-wl-pprint
-dependent packages, such as tmp-postgres
.
George Thomas commented
This has caused issues for some
ansi-wl-pprint
-dependent packages, such astmp-postgres
.