
This is a code formatter for ATS. It is
a work-in-progress, but it can handle a subset of the language already.
Currently it is only tested with ATS 0.3.8.
If you find something that's not listed in TODO.md
feel free to open
an issue. The pretty-printer is a bit anemic, so you're welcome to submit code
samples where it produces bad output.
The formatter is pleasantly fast, formatting a 1500 line file in <20ms.
Configuration
atsfmt
is configured with the .atsfmt.toml
file. You can generate a default
configuration with
$ atsfmt --default-config
Installation
Binary Releases
The releases page has binary
releases for common platforms.
Compilation from Source
To install, first install GHC, then
cabal. Then
$ cabal update
$ cabal install ats-format
License
All code except test/data/left-pad.dats
is licensed under the BSD3 license.