haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

Retrie plugin

Open expipiplus1 opened this issue 4 years ago • 2 comments

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?

expipiplus1 avatar Mar 18 '20 03:03 expipiplus1

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

jneira avatar Mar 18 '20 07:03 jneira

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

alanz avatar Mar 18 '20 08:03 alanz