haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 209 forks source link

Retrie plugin #1707

Open expipiplus1 opened 4 years ago

expipiplus1 commented 4 years ago

It seems like retrie would make a good plugin. TODO, figure out exactly what functionality would be appropriate to expose.

Perhaps this would be better placed in the https://github.com/haskell/haskell-language-server, I assume there'll be some issue migration at some point?

jneira commented 4 years ago

Looks really good. I guess the new plugins would be added directly to hls, once it has the base work to to do it: https://github.com/haskell/haskell-language-server/pull/45

alanz commented 4 years ago

The plugin support landed via that PR, it is now in master. The concept is very similar to that in hie, but the process of getting information from GHC is slightly different. But you can see how it works from e.g. the ormolu plugin, which uses the GHC AST