Troupe icon indicating copy to clipboard operation
Troupe copied to clipboard

fourmolu (Haskell formatter)

Open ssoelvsten opened this issue 2 months ago • 0 comments

Having all code formatted by mechanically has multiple benefits:

  • Consistent styling, which decreases cognitive load (more brainpower to solve problems rather than parsing the code).
  • Ease refactoring efforts, e.g. when renaming a variable one does not have to go through indenting everything anew by hand.

This also includes a new GitHub action which will complain if code in a pull requests (or pushed directly to a branch) is not properly formatted.

[!WARNING] I've marked this pull request as a draft since merging it would be a headache to other, e.g. https://github.com/TroupeLang/Troupe/pull/53 , https://github.com/TroupeLang/Troupe/pull/68 , and more. The merge of this needs to be coordinated.

ssoelvsten avatar Sep 29 '25 13:09 ssoelvsten