From 43bf24ae8d3a14c7fd1515dc1d832fb47a659916 Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Wed, 29 Jan 2025 13:45:05 -0500 Subject: [PATCH] Configure for fourmolu-v0.17 --- fourmolu.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/fourmolu.yaml b/fourmolu.yaml index ec1f505..3eb547e 100644 --- a/fourmolu.yaml +++ b/fourmolu.yaml @@ -1,17 +1,27 @@ indentation: 2 -column-limit: 80 # ignored until v12 / ghc-9.6 +column-limit: 80 function-arrows: leading comma-style: leading # default import-export-style: leading +import-grouping: + - name: "Preludes" + rules: + - glob: Prelude + - glob: Relude + - name: "Everything else" + rules: + - match: all + priority: 100 indent-wheres: false # default record-brace-space: true newlines-between-decls: 1 # default haddock-style: single-line let-style: mixed in-style: left-align -single-constraint-parens: never # ignored until v12 / ghc-9.6 +single-constraint-parens: never +sort-constraints: true +sort-derived-classes: true +sort-derived-clauses: true +trailing-section-operators: false unicode: never # default respectful: true # default -fixities: - - "infix 4 `stringEqual`" - - "infixl 1 &"