Haskell code prettifier
Stylish-haskell is a Haskell code prettifier. The goal is not to format all of the code in a file, to avoid "getting in the way". However, this tool can e.g. clean up import statements and help doing various tasks that get tedious very quickly. It can
Align and sort import
statements
Group and wrap -# LANGUAGE #-
pragmas, remove (some) redundant pragmas
Remove trailing whitespaces
Align branches in case
and fields in records
Convert line endings (customisable)
Replace tabs by four spaces (turned off by default)
Replace some ASCII sequences by their Unicode equivalent (turned off by default)
System | Target | Derivation | Build status |
---|---|---|---|
x86_64-linux | /gnu/store/f67jdv5i5hppjz9dm5gpf8scrba664qx-ghc-stylish-haskell-0.9.2.1.drv | ||
mips64el-linux | /gnu/store/kz8fr3i0cyf4r33azvl5zgggri5xijvj-ghc-stylish-haskell-0.9.2.1.drv | ||
i686-linux | /gnu/store/sp7hm90bpz5zq4wgwg3r5gblyab53dpj-ghc-stylish-haskell-0.9.2.1.drv | ||
armhf-linux | /gnu/store/2ngac89kj3f98ibxchlmsva8jakwq44i-ghc-stylish-haskell-0.9.2.1.drv | ||
aarch64-linux | /gnu/store/s0dsvmg5vmbqr2zim1hd766s88lxyhbm-ghc-stylish-haskell-0.9.2.1.drv |
Linter | Message | Location |
---|---|---|
No lint warnings ✓ |