editorconfig to ensure consistency in the format of our
Haskell code. There are editorconfig plugins for several text editors, so make sure that your editor
honors the configuration in
Additionally, we use
stylish-haskell to format
grouped imports and language pragmas. There is a
configuration file that determines how
stylish-haskell formats the code. Make sure that you have a
recent version of
stylish-haskell installed and that your editor enforces the rules defined by the
.stylish-haskell.yaml configuration file.
stylish-haskell configuration prioritizes “diff-safety”: it should introduce only minimal
changes, to avoid polluting our diffs with irrelevant information.