haskell / lsp

Haskell library for the Microsoft Language Server Protocol
364 stars 90 forks source link

Add `Pretty` instances for (some?) of the types in `lsp-types` #403

Closed michaelpj closed 1 year ago

michaelpj commented 2 years ago

prettyprinter is already used by HLS, and it's widely used in the ecosystem, so I think it's reasonable for us to depend on it.

We probably don't want instances for all the types (or do we?) simply because it would be a lot of work. But certainly for key types like Position etc. it would be nice.

michaelpj commented 1 year ago

I did this