iquiw / company-ghc

Company-mode completion back-end for haskell-mode via ghc-mod
125 stars 6 forks source link

Direct communication with ghc-modi #6

Closed iquiw closed 8 years ago

iquiw commented 10 years ago

Currently, company-ghc borrows ghc-mod variables and modifies them by adding text properties. It is not polite. I would like to change it by communicating with ghc-modi directly via ghc-sync-process.

Once after ghc-modi supports "-d" and "-o" options like ghc-mod, we can remove call of ghc-get-info and add operators into candidates.

One down side is we may have duplicate set of keywords in ghc-mod and company-ghc.

iquiw commented 9 years ago

Initial implementation is pushed to direct-comm branch [1].

TODO

[1] https://github.com/iquiw/company-ghc/tree/direct-comm

iquiw commented 8 years ago

Since ghc-get-info now pops up error if the current buffer contains error, ghc-get-info is not usable for company's meta command.

With this branch,

ghc-get-info is not used in default. I will merge it.