mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-10-26 09:20:16 +03:00
bd1d0a1675
* Stylish Haskell: Parse issues * CPP language extension * Manually fix some files with duplication * Pre-commit: Fix ignored files It looks like `ExactPrint` was ignored before, but since absolute paths are used and weren't adapted it wasn't ignored afterwards.
79 lines
1.5 KiB
YAML
79 lines
1.5 KiB
YAML
# See https://github.com/jaspervdj/stylish-haskell/blob/main/data/stylish-haskell.yaml
|
|
# for reference.
|
|
|
|
steps:
|
|
# - unicode_syntax:
|
|
# add_language_pragma: true
|
|
|
|
# - module_header:
|
|
# indent: 4
|
|
# sort: true
|
|
# separate_lists: true
|
|
|
|
# - records:
|
|
# equals: "indent 2"
|
|
# first_field: "indent 2"
|
|
# field_comment: 2
|
|
# deriving: 2
|
|
# via: "indent 2"
|
|
# sort_deriving: true
|
|
# break_enums: false
|
|
# break_single_constructors: true
|
|
# curried_context: false
|
|
|
|
- simple_align:
|
|
cases: always
|
|
top_level_patterns: always
|
|
records: always
|
|
multi_way_if: always
|
|
|
|
- imports:
|
|
align: global
|
|
list_align: after_alias
|
|
pad_module_names: true
|
|
long_list_align: inline
|
|
empty_list_align: inherit
|
|
list_padding: 4
|
|
separate_lists: true
|
|
space_surround: false
|
|
ghc_lib_parser: false
|
|
|
|
- language_pragmas:
|
|
style: vertical
|
|
align: true
|
|
remove_redundant: true
|
|
language_prefix: LANGUAGE
|
|
|
|
# - tabs:
|
|
# spaces: 8
|
|
|
|
- trailing_whitespace: {}
|
|
|
|
# - squash: {}
|
|
|
|
columns: 80
|
|
|
|
newline: lf
|
|
|
|
language_extensions:
|
|
- BangPatterns
|
|
- CPP
|
|
- DataKinds
|
|
- DeriveFunctor
|
|
- DeriveGeneric
|
|
- FlexibleContexts
|
|
- GeneralizedNewtypeDeriving
|
|
- KindSignatures
|
|
- LambdaCase
|
|
- NamedFieldPuns
|
|
- OverloadedStrings
|
|
- RecordWildCards
|
|
- ScopedTypeVariables
|
|
- StandaloneDeriving
|
|
- TupleSections
|
|
- TypeApplications
|
|
- TypeOperators
|
|
- ViewPatterns
|
|
|
|
cabal: true
|