Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/horellana/company-ghci
A company backend for haskell
https://github.com/horellana/company-ghci
company-mode emacs haskell
Last synced: about 1 month ago
JSON representation
A company backend for haskell
- Host: GitHub
- URL: https://github.com/horellana/company-ghci
- Owner: horellana
- License: gpl-3.0
- Created: 2015-02-27T01:08:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-07T03:11:50.000Z (over 5 years ago)
- Last Synced: 2024-08-05T06:06:12.094Z (5 months ago)
- Topics: company-mode, emacs, haskell
- Language: Emacs Lisp
- Homepage:
- Size: 89.8 KB
- Stars: 22
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
company-ghci
============
Description
-----------
company-ghci is a company backend that provides completions for the haskell programming language by talking to a ghci process.Requeriments
------------
* company
* haskell-modeInstallation
------------
company-ghci is available on melpa, so first you will have to [configure emacs to use the MELPA repository](http://melpa.org/#/getting-started).
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](https://github.com/haskell/haskell-mode/wiki/Haskell-Interactive-Mode-Setup).
Usage
-----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 `````` to open a buffer with the documentation of the highlighted completion candidate.
If you have [company-quickhelp](https://github.com/expez/company-quickhelp), then a popup will appear with the documentation of the highlighted completion candidate.
Images
------
![Screenshot](img.png)