haskell / lsp

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

Provide the ability to merge client caps, server caps, and registration options #584

Open michaelpj opened 4 months ago

michaelpj commented 4 months ago

All of this would be handy for defining things piecemeal and then gluing them together.

I think this is generally possible, since these types are usually "permissions", that say what is allowed, so there is usually a sensible way to union them by allowing everything that either side allows.

However, there are a lot of types here, so we probably need to do something generic. I would really like to avoid doing things by hand if we possibly can!