@hackage ats-format0.1.0.0
A source-code formatter for ATS
Categories
License
BSD-3-Clause
Maintainer
vamchale@gmail.com
Links
Versions
Installation
CustomDependencies (16)
- ansi-terminal
- ansi-wl-pprint >=0.6.8
- array
- base >=4.8 && <5
- composition-prelude >=0.1.1.1
- deepseq Show all…
Dependents (2)
@hackage/acme-everything, @hackage/shake-ext
Package Flags
development
(off by default)
Enable `-Werror`
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.
If you find something that's not listed in TODO.md feel free to open
an issue.
Configuration
atsfmt is configured with the .atsfmt.toml file. As an example:
ribbon = 0.6 # maximum ribbon fraction
width = 120 # maximum width
clang-format = false # call clang-format on inline code
Installation
To install, first install GHC, then cabal. Then
$ cabal update
$ cabal install ats-format
License
All code except test/data/left-pad.dats is license under the BSD3 license.