clarity(haskell): improve style
authorJulien Moutinho <julm+literate-web@sourcephile.fr>
Sat, 13 Jul 2024 11:03:53 +0000 (13:03 +0200)
committerJulien Moutinho <julm+literate-web@sourcephile.fr>
Sat, 13 Jul 2024 13:56:44 +0000 (15:56 +0200)
.chglog/config.yml
fourmolu.yaml

index 2e25049f6d6c175f806bd015f00068490967cf2c..a7368122231140515cce5b653e3aeac8e4d91c60 100755 (executable)
@@ -13,13 +13,15 @@ options:
     group_by: Scope
     sort_by: Custom
     title_order:
-      - iface
+      - build
+      - clarity
       - doc
+      - iface
       - impl
       - tests
-      - build
     title_maps:
       build: Build
+      clarity: Clarity
       doc: Documentation
       iface: Interface
       impl: Implementation
index 1fc42afa959d3c08873cd89c9ef461d416234621..732cd147fda38d401a8128c1c754607a3d93540c 100644 (file)
@@ -1,8 +1,50 @@
+# Number of spaces per indentation step
+indentation: 2
+
+# Max line length for automatic line breaking
+column-limit: none
+
+# Styling of arrows in type signatures (choices: trailing, leading, or leading-args)
+function-arrows: trailing
+
+# How to place commas in multi-line lists, records, etc. (choices: leading or trailing)
 comma-style: leading
-diff-friendly-import-export: true
-haddock-style: single-line
+
+# Styling of import/export lists (choices: leading, trailing, or diff-friendly)
+import-export-style: diff-friendly
+
+# Whether to full-indent or half-indent 'where' bindings past the preceding body
 indent-wheres: true
-indentation: 2
-newlines-between-decls: 1
+
+# Whether to leave a space before an opening record brace
 record-brace-space: false
+
+# Number of spaces between top-level declarations
+newlines-between-decls: 1
+
+# How to print Haddock comments (choices: single-line, multi-line, or multi-line-compact)
+haddock-style: single-line
+
+# How to print module docstring
+haddock-style-module: null
+
+# Styling of let blocks (choices: auto, inline, newline, or mixed)
+let-style: mixed
+
+# How to align the 'in' keyword with respect to the 'let' keyword (choices: left-align, right-align, or no-space)
+in-style: no-space
+
+# Whether to put parentheses around a single constraint (choices: auto, always, or never)
+single-constraint-parens: never
+
+# Output Unicode syntax (choices: detect, always, or never)
+unicode: never
+
+# Give the programmer more choice on where to insert blank lines
 respectful: true
+
+# Fixity information for operators
+fixities: []
+
+# Module reexports Fourmolu should know about
+reexports: []