https://github.com/vmchale/ats-format
ATS source code formatter
https://github.com/vmchale/ats-format
Last synced: 9 months ago
JSON representation
ATS source code formatter
- Host: GitHub
- URL: https://github.com/vmchale/ats-format
- Owner: vmchale
- License: bsd-3-clause
- Created: 2017-12-19T05:27:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T04:21:17.000Z (almost 8 years ago)
- Last Synced: 2025-04-04T08:01:39.334Z (9 months ago)
- Language: Haskell
- Size: 3.28 MB
- Stars: 11
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ats-formatter
[](https://travis-ci.org/vmchale/ats-format)

This is a code formatter for [ATS](http://www.ats-lang.org/). It is
a work-in-progress, but it can handle a good portion of the language already.
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
```bash
$ atsfmt --default-config
```
### Vim
You can use [this](https://github.com/vmchale/ats-vim) plugin to enable
automatic formatting on write.
## Installation
### Binary Releases
The [releases](https://github.com/vmchale/ats-format/releases) page has binary
releases for common platforms.
### Compilation from Source
To install, first install [GHC](https://www.haskell.org/ghc/download.html), then
[cabal](https://www.haskell.org/cabal/download.html). Then
```bash
$ cabal update
$ cabal new-install ats-format --happy-options='-gcsa' --alex-options='-g' --symlink-bindir ~/.cabal/bin -O2
```
## License
All code except `test/data/left-pad.dats` is licensed under the BSD3 license.