Skip to content

iquiw/hyai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HYAI travis coveralls melpa

Overview

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.

Installation

Setup from MELPA

  1. Install from MELPA

    M-x package-install RET hyai RET
  2. Add hyai-mode to haskell-mode-hook

    (add-hook 'haskell-mode-hook #'hyai-mode)

Setup from GitHub

  1. Install from GitHub:

    git clone https://github.com/iquiw/hyai.git
    
  2. Add hyai-mode to haskell-mode-hook

    (add-to-list 'load-path "/path/to/hyai")
    (require 'hyai)
    (add-hook 'haskell-mode-hook #'hyai-mode)

Status

Supported Style

  • Basic Indentation and where
  • Data Declarations
  • List Declarations
  • Hanging Lambdas (partial)
  • Export Lists
  • If-then-else clauses (partial)
  • Case expressions
  • Top-Level Definitions

License

Licensed under the GPL 3+ license.