summaryrefslogtreecommitdiffhomepage
path: root/data
diff options
context:
space:
mode:
authorMaxim Koltsov <kolmax94@gmail.com>2020-10-05 21:28:37 +0300
committerGitHub <noreply@github.com>2020-10-05 20:28:37 +0200
commit84ff4e57eb24b5b5ab95ad7b64419846922e00f7 (patch)
treeea99f73bb9e6288670b16416cf0ad461bafedd1a /data
parent062310c5d3420e58edea1a2d6bbe0f71d18a184e (diff)
downloadstylish-haskell-84ff4e57eb24b5b5ab95ad7b64419846922e00f7.tar.gz
Make sorting deriving list optional (#316)
* Make sorting deriving list optional Not everyone wants their typeclasses sorted. * Remove redundant code Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com>
Diffstat (limited to 'data')
-rw-r--r--data/stylish-haskell.yaml7
1 files changed, 5 insertions, 2 deletions
diff --git a/data/stylish-haskell.yaml b/data/stylish-haskell.yaml
index 80892dc..0a2e21a 100644
--- a/data/stylish-haskell.yaml
+++ b/data/stylish-haskell.yaml
@@ -58,10 +58,13 @@ steps:
#
# # How many spaces to insert before "via" clause counted from indentation of deriving clause
# # Possible values:
- # # - "same_line" -- "{" and first field goes on the same line as the data constructor.
- # # - "indent N" -- insert a new line and N spaces from the beginning of the data constructor
+ # # - "same_line" -- "via" part goes on the same line as "deriving" keyword.
+ # # - "indent N" -- insert a new line and N spaces from the beginning of "deriving" keyword.
# via: "indent 2"
#
+ # # Sort typeclass names in the "deriving" list alphabetically.
+ # sort_deriving: true
+ #
# # Wheter or not to break enums onto several lines
# #
# # Default: false