haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.61k stars 351 forks source link

Use restricted monad for plugins (#4057) #4304

Closed awjchen closed 2 weeks ago

awjchen commented 2 weeks ago

This PR defines new monad, HandlerM, a newtype wrapper around the LspM monad, and substitutes it for LspM in all plugin-related code. This is an initial step towards https://github.com/haskell/haskell-language-server/issues/4057 that refactors code but does not change the capabilities of the plugin interface.

michaelpj commented 2 weeks ago

Needs stylish-haskell run on things