-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfloskell.toml
40 lines (34 loc) · 1.51 KB
/
floskell.toml
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
# This file contains repository-specific configuration options for the Floskell
# formatter. This file is used to generate the `floskell.json` file. It should
# be merged with the template configuration file
# <https://github.com/FreeProving/guidelines/blob/main/floskell.toml>
# as described in the comments of the template.
extensions = [
# The `MultiParamTypeClasses` extension is not actually enabled by default
# in the Cabal configuration file. However, while GHC allows multi-paradigm
# type class contexts in modules that don't use the `MultiParamTypeClasses`
# extension, the parser that is used by Floskell (i.e., `haskell-src-exts`)
# does follow the Haskell Report more closely and does not allow this.
# We cannot enable the extension in the affected modules since HLint
# would complain about the unused language extension. As a workaround we
# pretend that the language extension is enabled during formatting.
"MultiParamTypeClasses"
]
fixities = [
# Infix operators from `System.FilePath`.
"infixr 5 </>",
"infixr 7 <.>",
# Infix operators from `Data.Composition`.
"infixr 8 .:",
"infixr 8 .:.",
# Infix operators from `Data.Tuple.Extra`.
"infixr 3 &&&",
# Custom infix operators from `FreeC.Util.Predicate`.
"infixr 3 .&&.",
"infixr 2 .||."
]
# All non-`Main` modules in this repository use the `FreeC` prefix. They should
# be sorted into their own group.
[[formatting.options.sort-imports]]
prefixes = ["FreeC"]
order = "sorted"