haskell-prettyprinter / haskell-prettyprinter/prettyprinter
`prettyprinter-compat-ansi-wl-pprint ` is not quite a drop-in replacement as claimed
- Lingua principale
- Haskell
- Stelle
- 309
- Fork
- 43
- Merge medio
- 21h 25m
- PR unite (30g)
- 1
Descrizione
This was noticed in https://github.com/ekmett/ansi-wl-pprint/pull/32#issue-1712218860, 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 existing `Pretty` instances which use basic functions like [`text`](https://hackage.haskell.org/package/ansi-wl-pprint-1.0.2/docs/Text-PrettyPrint-ANSI-Leijen.html#v:text) no longer compile, since `prettyprinter`'s `pretty` 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`.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with the README section describing prettyprinter-compat-ansi-wl-pprint and compare its drop-in replacement claims with the incompatibilities listed here. Update the documentation to explain the missing Pretty (Maybe a) instance and the annotation-polymorphism limitation, then verify that the limitations are clear to users of ansi-wl-pprint-dependent packages.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- haskell
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100