Add stylish-haskell config

Problem: somehow, we yet lack it here, so different people may bring
different formatting to the source code.

Solution: add some config that we commonly use.
This commit is contained in:
martoon 2021-02-12 19:20:28 +03:00
parent aee39ef06e
commit 52e2acc14e
No known key found for this signature in database
GPG Key ID: FF02288E36C0E4B0

62
.stylish-haskell.yaml Normal file
View File

@ -0,0 +1,62 @@
# SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io>
#
# SPDX-License-Identifier: Unlicense
steps:
- simple_align:
cases: false
top_level_patterns: false
records: false
- imports:
align: none
list_align: after_alias
pad_module_names: false
long_list_align: new_line
empty_list_align: inherit
list_padding: 2
separate_lists: true
space_surround: false
- trailing_whitespace: {}
columns: 100
newline: native
language_extensions:
- BangPatterns
- BlockArguments
- ConstraintKinds
- DataKinds
- DefaultSignatures
- DeriveAnyClass
- DeriveDataTypeable
- DeriveGeneric
- DerivingStrategies
- DerivingVia
- EmptyCase
- ExistentialQuantification
- ExplicitNamespaces
- FlexibleContexts
- FlexibleInstances
- FunctionalDependencies
- GADTs
- GeneralizedNewtypeDeriving
- LambdaCase
- MultiParamTypeClasses
- MultiWayIf
- NamedFieldPuns
- NoImplicitPrelude
- NumericUnderscores
- OverloadedLabels
- OverloadedStrings
- PatternSynonyms
- QuantifiedConstraints
- RebindableSyntax
- RecordWildCards
- RecursiveDo
- ScopedTypeVariables
- StandaloneDeriving
- TemplateHaskell
- TemplateHaskellQuotes
- TupleSections
- TypeApplications
- TypeFamilies
- TypeOperators
- ViewPatterns