-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfourmolu.yaml
64 lines (53 loc) · 1.53 KB
/
fourmolu.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# How many spaces to use as an indent
# - any non-negative integer
indentation: 2
# Where to place arrows in type signatures
# - trailing
# - leading
function-arrows: leading
# Where to place commas in lists, tuples, etc.
# - trailing
# - leading
comma-style: leading
# How to format multiline import/export lists (diff-friendly lists have trailing
# commas but keep the opening parenthesis on the same line as import)
# - leading
# - trailing
# - diff-friendly
import-export-style: leading
# Use an extra level of indentation vs only half-indent the where keyword
# - true
# - false
indent-wheres: false
# rec {x = 1} vs rec{x = 1}
# - true
# - false
record-brace-space: false
# Number of newlines between top-level declarations
# - any non-negative integer
newlines-between-decls: 2
# Use -- |, {- |, or {-| for multiline haddocks (single-line haddocks always use --)
# - single-line
# - multi-line
# - multi-line-compact
haddock-style: single-line
# How to style let blocks (auto uses newline if there's a newline in the input and
# inline otherwise, and mixed uses inline only when the let has exactly one binding)
# - inline
# - newline
# - auto
# - mixed
let-style: auto
# How to align the in keyword with respect to let
# - left-align
# - right-align
in-style: right-align
# Be less aggressive in reformatting input, e.g. keep empty lines in import list
# - true
# - false
respectful: true
# The auto option will keep parentheses if they already exist, but won't add parentheses if not.
# - auto
# - always
# - never
single-constraint-parens: never