It runs when the major mode is derived from haskell-mode.
- cl-lib
- company-mode
- ghc-mod
Install from Git:
git clone https://github.com/iquiw/company-ghc.git
Add
company-ghc
tocompany-backends
after loading company-mode and ghc-mod:(add-to-list 'load-path "/path/to/company-ghc") (require 'company-ghc) (add-to-list 'company-backends 'company-ghc)
The following completions are available.
Pragma names. (
ghc-pragma-names
)Language extensions. (
ghc-language-extensions
)GHC option flags. (
ghc-options-flags
)Import module names. (
ghc-modules-names
)Variables and functions in import spec. (
ghc-module-keyword
)Keywords. (
ghc-merged-keywords
)
- Show type in minibuffer.
- Context sensitive completion for qualified imported keywords.
Licensed under the GPL 3+ license.