Announcing `pursfmt`

I’m excited to announce pursfmt - A configurable syntax formatter for PureScript :tada:

It’s a fork of purescript-tidy and includes following improvements so far:

  • New option thenPlacement with following options
    • new-line - then keyword is placed on a new line
    • same-line - then keyword is placed on the same line as the if condition
  • 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!

1 Like