haskell / lsp

Haskell library for the Microsoft Language Server Protocol
360 stars 89 forks source link

Add Pretty instances for LSP types #513

Closed michaelpj closed 10 months ago

michaelpj commented 10 months ago

The instances just prettyprint their JSON representations, which is often what we want and is better than using Show!

Ultimately this means we should get much better layout when prettyprinting logs and errors that reference LSP entities when we fix downstream uses to avoid viaShow.