git.iko.soy/typeable/servant
on static-client help sign in
typeable/servant/.stylish-haskell.yaml
77 lines 2.7 kB history raw
1# stylish-haskell configuration file
2# ==================================
4# The stylish-haskell tool is mainly configured by specifying steps. These steps
5# are a list, so they have an order, and one specific step may appear more than
6# once (if needed). Each file is processed by these steps in the given order.
7steps:
8 # Convert some ASCII sequences to their Unicode equivalents. This is disabled
9 # by default.
10 # - unicode_syntax:
11 # # In order to make this work, we also need to insert the UnicodeSyntax
12 # # language pragma. If this flag is set to true, we insert it when it's
13 # # not already present. You may want to disable it if you configure
14 # # language extensions using some other method than pragmas. Default:
15 # # true.
16 # add_language_pragma: true
18 # Import cleanup
19 - imports:
20 # There are different ways we can align names and lists.
21 #
22 # - global: Align the import names and import list throughout the entire
23 # file.
24 #
25 # - file: Like global, but don't add padding when there are no qualified
26 # imports in the file.
27 #
28 # - group: Only align the imports per group (a group is formed by adjacent
29 # import lines).
30 #
31 # - none: Do not perform any alignment.
32 #
33 # Default: global.
34 align: global
36 # Language pragmas
37 - language_pragmas:
38 # We can generate different styles of language pragma lists.
39 #
40 # - vertical: Vertical-spaced language pragmas, one per line.
41 #
42 # - compact: A more compact style.
43 #
44 # - compact_line: Similar to compact, but wrap each line with
45 # `{-#LANGUAGE #-}'.
46 #
47 # Default: vertical.
48 style: vertical
50 # stylish-haskell can detect redundancy of some language pragmas. If this
51 # is set to true, it will remove those redundant pragmas. Default: true.
52 remove_redundant: true
54 # Align the types in record declarations
55 - records: {}
57 # Replace tabs by spaces. This is disabled by default.
58 # - tabs:
59 # # Number of spaces to use for each tab. Default: 8, as specified by the
60 # # Haskell report.
61 # spaces: 8
63 # Remove trailing whitespace
64 - trailing_whitespace: {}
66# A common setting is the number of columns (parts of) code will be wrapped
67# to. Different steps take this into account. Default: 80.
68columns: 80
70# Sometimes, language extensions are specified in a cabal file or from the
71# command line instead of using language pragmas in the file. stylish-haskell
72# needs to be aware of these, so it can parse the file correctly.
74# No language extensions are enabled by default.
75language_extensions:
76 - TemplateHaskell
77 - QuasiQuotes