Hyai is an indentation minor mode for Haskell, written from scratch. It supports only one style that basically follows Johan Tibell's Style Guide.
Offset values (hyai-basic-offset
and hyai-where-offset
) can be customized,
but only the default values are tested by unit tests.
So the customized values may not work properly.
Setup from MELPA
Install from MELPA
M-x package-install RET hyai RETAdd
hyai-mode
tohaskell-mode-hook
(add-hook 'haskell-mode-hook #'hyai-mode)
Install from GitHub:
git clone https://github.com/iquiw/hyai.git
Add
hyai-mode
tohaskell-mode-hook
(add-to-list 'load-path "/path/to/hyai") (require 'hyai) (add-hook 'haskell-mode-hook #'hyai-mode)
- Basic Indentation and
where
- Data Declarations
- List Declarations
- Hanging Lambdas (partial)
- Export Lists
- If-then-else clauses (partial)
- Case expressions
- Top-Level Definitions
Licensed under the GPL 3+ license.