ats-format: A source-code formatter for ATS

[ ats, bsd3, development, language, parser, program ] [ Propose Tags ]

An opinionated source-code formatter for ATS.

[Skip to Readme]
Versions [faq],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Change log
Dependencies ansi-wl-pprint, base (>1 && <1), directory, file-embed (>=0.0.9), language-ats (>=, optparse-applicative, process, text, toml-parser [details]
License BSD-3-Clause
Copyright Copyright: (c) 2017-2019 Vanessa McHale
Author Vanessa McHale
Revised Revision 1 made by vmchale at 2019-11-09T14:52:01Z
Category Parser, Language, ATS, Development
Source repo head: darcs get
Uploaded by vmchale at 2019-11-09T00:45:02Z
Distributions NixOS:
Executables atsfmt
Downloads 27168 total (105 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2019-11-09 [all 3 reports]



Enable -Werror


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for ats-format-

[back to package description]


Build Status

<img alt="Screenshot of sample results" src=> <img alt="Screenshot of sample results" src=>

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.