A source-code formatter for ATS

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD-3-Clause licensed by Vanessa McHale
Maintained by


Build Status

This is a code formatter for ATS. It is a work-in-progress.

If you find something that’s not listed in feel free to open an issue. Code samples that were formatted into something ugly are also welcome.


atsfmt is configured with the .atsfmt.toml file. You can generate a default configuration with

 $ atsfmt --default-config


You can use this plugin to enable automatic formatting on write.


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 new-install ats-format --happy-options='-gcsa' -O2


All code except test/data/left-pad.dats is licensed under the BSD3 license.



  • Fix typo in command-line parser
comments powered byDisqus