stylish-haskell 0.9.2.2 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)