To install this package, run in Emacs:
M-x package-install RET hcel RET
hc.el (or hcel in ELPA) is a client to hcel and an Emacs package for Haskell code browsing and exploring. Features include:
hc.el is available as hcel on GNU ELPA.
Clone this repo, and add to load path (assuming you clone to
~/.emacs.d
):
cd ~/.emacs.d git clone https://g.ypei.me/hc.el.git
(add-to-list 'load-path "~/.emacs.d/hc.el")
You'll also need an hcel server. To host one yourself, clone the repo and follow the instructions there.
Once you have a server set up (say at localhost:8080
) and serving
source info about indexed packages, do the following and you are all
set.
(require 'hcel) (setq hcel-host "localhost:8080")
There are several entry points:
hcel
opens up an hcel-outline mode buffer, where you can
browse all packages, modules and identifiers in outline mode, and
open any module source or jump to the definition of any identifier you like;hcel-package
prompts you for a package id, followed by a module
path, to open the module source.hcel-global-ids
lets you search for identifiers globally, and
either jump to the source (in case of a hit) or display search
results.hcel-help
lets you search for identifiers globally and displays
the result in a help buffer.Most of these TODOs likely require changes to the server program.
hc.el
is maintained by Yuchen Pei <id@ypei.org> and covered by GNU
AGPLv3+. You may find the license text in a file named COPYING.agpl3
in the project tree.
hcel-1.0.0.0.20221006.55158.tar.lz | 2022-Oct-06 | 25.0 KiB |
hcel-1.0.0.0.20221005.64213.tar.lz | 2022-Oct-05 | 24.9 KiB |
hcel-0.0.20220930.2435.tar.lz | 2022-Sep-30 | 24.5 KiB |
hcel-0.0.20220929.54424.tar.lz | 2022-Sep-29 | 24.5 KiB |
hcel-0.0.20220928.124550.tar.lz | 2022-Sep-28 | 23.7 KiB |
hcel-0.0.20220928.52755.tar.lz | 2022-Sep-28 | 23.2 KiB |
hcel-0.0.20220927.74031.tar.lz | 2022-Sep-27 | 22.5 KiB |
hcel-0.0.20220923.64536.tar.lz | 2022-Sep-26 | 22.2 KiB |