Company-mode completion back-end for haskell-cabal-mode.
- cl-lib
- company-mode
Setup from MELPA
Install from MELPA:
M-x package-install RET company-cabal RET
Add
company-cabal
tocompany-backends
after loading company-mode.(add-to-list 'company-backends 'company-cabal)
Install from Git:
git clone https://github.com/iquiw/company-cabal.git
Add
company-cabal
tocompany-backends
after loading company-mode.(add-to-list 'load-path "/path/to/company-cabal") (add-to-list 'company-backends 'company-cabal)
Field name completion
If field name starts with uppercase character, the completion result is capitalized (e.g. "Cabal-Version").Otherwise, the completion result contains lowercase characters only (e.g. "cabal-version").Section name completion
Some field value completion
- build-depends (
ghc-pkg list
) - build-type
- default-extensions, extensions, other-extensions
(
ghc --supported-extensions
) - ghc-options, ghc-prof-options, ghc-shared-options
(
ghc --show-options
if ghc version >= 7.8) - hs-source-dirs (current directories)
- type
- build-depends (
- No support for brace layout
Licensed under GPL 3+ license.