About

Metadata

  • Last updated , by vmchale
  • License BSD-3-Clause
  • Categories Development, Parsers
  • Maintained by: vamchale@gmail.com

  • Lottery factor: 0

Links

Installation

This package uses the Custom cabal build type

Package Flags

Use the -f option with cabal commands to enable flags

    development (off by default)

    Enable `-Werror`

Readme

ats-formatter

Build Status

Screenshot of sample results Screenshot of sample results

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

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

Configuration

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

 $ atsfmt --default-config
Vim

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

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

License

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