@hackage ats-format0.1.3.6
A source-code formatter for ATS
Categories
License
BSD-3-Clause
Maintainer
vamchale@gmail.com
Links
Versions
Installation
CustomDependencies (15)
- ansi-terminal
- ansi-wl-pprint >=0.6.8
- array
- base >=4.8 && <5
- composition-prelude >=0.1.1.2
- deepseq Show all…
Dependents (2)
@hackage/acme-everything, @hackage/shake-ext
Package Flags
development
(off by default)
Enable `-Werror`
library
(off by default)
Do not build executable
ats-formatter
This is a code formatter for ATS. It is a work-in-progress, but it can handle a subset of the language already. The main remaining obstacle is formatting for comments.
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' --alex-options='-g' --symlink-bindir ~/.cabal/bin -O2
License
All code except test/data/left-pad.dats is licensed under the BSD3 license.