Skip to content
A company backend for haskell
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE license Feb 27, 2015 info about company-quickhelp. Sep 13, 2015
company-ghci.el Wrap symbols with double quotes when calling hoogle for info Jun 29, 2019
img.png screenshot Feb 27, 2015



company-ghci is a company backend that provides completions for the haskell programming language by talking to a ghci process.


  • company
  • haskell-mode


company-ghci is available on melpa, so first you will have to configure emacs to use the MELPA repository. Then you can install the package using (package-install).

Add the following code to your init file

(require 'company-ghci)
(push 'company-ghci company-backends)
(add-hook 'haskell-mode-hook 'company-mode)
;;; To get completions in the REPL
(add-hook 'haskell-interactive-mode-hook 'company-mode)

And setup haskell-mode to enable haskell-interactive-mode.


Open a haskell file and load it using haskell-process-load-or-reload (C-c C-l), now when you type something, emacs should offer you some completions.

If you have hoogle installed, you can press <f1> to open a buffer with the documentation of the highlighted completion candidate.

If you have company-quickhelp, then a popup will appear with the documentation of the highlighted completion candidate.



You can’t perform that action at this time.