mirror of
https://github.com/zap-proto/haskell.git
synced 2026-10-30 15:05:00 +00:00
Adds a `make format` target to apply to every .hs file in the repo, and a config file that's not a no-op. The rest of the diff is the result of running `make format`. Right now, Language.CapNProto.TH fails to parse; stylish-haskell doesn't seem to like the one of the pattern splices. I'll need to figure out what to do with that.
30 lines
816 B
YAML
30 lines
816 B
YAML
steps:
|
|
- simple_align:
|
|
cases: true
|
|
top_level_patterns: true
|
|
records: true
|
|
- imports:
|
|
align: group
|
|
list_align: after_alias
|
|
pad_module_names: true
|
|
long_list_align: new_line_multiline
|
|
empty_list_align: right_after
|
|
list_padding: 4
|
|
separate_lists: false
|
|
space_surround: false
|
|
- language_pragmas:
|
|
style: vertical
|
|
align: true
|
|
remove_redundant: true
|
|
spaces: 4
|
|
- trailing_whitespace: {}
|
|
columns: 80
|
|
newline: lf
|
|
language_extensions:
|
|
# stylish-haskell's parser (really haskell-src-exts) and GHC disagree about
|
|
# when some of the following are needed, so some of our modules will build
|
|
# without these extensions, but stylish-haskell needs them for parsing:
|
|
- ExplicitForAll
|
|
- FlexibleContexts
|
|
- MultiParamTypeClasses
|