meiersi / stylish-haskell

Align and sort imports in Haskell source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stylish-haskell

Build Status

Introduction

A simple Haskell code prettifier

Features

  • Aligns and sorts import statements
  • Groups and wraps {-# LANGUAGE #-} pragmas (WIP)
  • Removes trailing whitespace
  • Replaces tabs by four spaces

VIM integration

Since it works as a filter it is pretty easy to integrate this with VIM. Just call

:%!stylish-haskell

or add a keybinding for it.

About

Align and sort imports in Haskell source code

License:Other


Languages

Language:Haskell 100.0%