I’m excited to announce pursfmt - A configurable syntax formatter for PureScript ![]()
It’s a fork of purescript-tidy and includes following improvements so far:
- New option
thenPlacementwith following options-
new-line-thenkeyword is placed on a new line -
same-line-thenkeyword is placed on the same line as theifcondition
-
- New YAML config file
.pursfmt.yaml(Instead of the JSON.tidyrc.json)
For example, I applied the new option to Transity in this commit.
The fork was necessary, as @natefaubion is not interested in maintaining more style variants in purescript-tidy.
I’m happy, however, to support any formatting preferences that users might have for their PureScript code. Looking forward to receiving your PRs!