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.
8 # Convert some ASCII sequences to their Unicode equivalents. This is disabled
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:
16 # add_language_pragma: true
20 # There are different ways we can align names and lists.
22 # - global: Align the import names and import list throughout the entire
25 # - file: Like global, but don't add padding when there are no qualified
26 # imports in the file.
28 # - group: Only align the imports per group (a group is formed by adjacent
31 # - none: Do not perform any alignment.
36 # Folowing options affect only import list alignment.
38 # List align has following options:
40 # - after_alias: Import list is aligned with end of import including
41 # 'as' and 'hiding' keywords.
43 # > import qualified Data.List as List (concat, foldl, foldr, head,
44 # > init, last, length)
46 # - with_alias: Import list is aligned with start of alias or hiding.
48 # > import qualified Data.List as List (concat, foldl, foldr, head,
49 # > init, last, length)
51 # - new_line: Import list starts always on new line.
53 # > import qualified Data.List as List
54 # > (concat, foldl, foldr, head, init, last, length)
56 # Default: after_alias
57 list_align: after_alias
59 # Long list align style takes effect when import is too long. This is
60 # determined by 'columns' setting.
62 # - inline: This option will put as much specs on same line as possible.
64 # - new_line: Import list will start on new line.
66 # - new_line_multiline: Import list will start on new line when it's
67 # short enough to fit to single line. Otherwise it'll be multiline.
69 # - multiline: One line per import list entry.
70 # Type with contructor list acts like single import.
72 # > import qualified Data.Map as M
80 long_list_align: inline
82 # List padding determines indentation of import list on lines after import.
83 # This option affects 'list_align' and 'long_list_align'.
86 # Separate lists option affects formating of import list for type
87 # or class. The only difference is single space between type and list
88 # of constructors, selectors and class functions.
90 # - true: There is single space between Foldable type and list of it's
93 # > import Data.Foldable (Foldable (fold, foldl, foldMap))
95 # - false: There is no space between Foldable type and list of it's
98 # > import Data.Foldable (Foldable(fold, foldl, foldMap))
101 separate_lists: false
105 # We can generate different styles of language pragma lists.
107 # - vertical: Vertical-spaced language pragmas, one per line.
109 # - compact: A more compact style.
111 # - compact_line: Similar to compact, but wrap each line with
117 # Align affects alignment of closing pragma brackets.
119 # - true: Brackets are aligned in same collumn.
121 # - false: Brackets are not aligned together. There is only one space
122 # between actual import and closing bracket.
127 # stylish-haskell can detect redundancy of some language pragmas. If this
128 # is set to true, it will remove those redundant pragmas. Default: true.
129 remove_redundant: true
131 # Align the types in record declarations
134 # Replace tabs by spaces. This is disabled by default.
136 # # Number of spaces to use for each tab. Default: 8, as specified by the
140 # Remove trailing whitespace
141 - trailing_whitespace: {}
143# A common setting is the number of columns (parts of) code will be wrapped
144# to. Different steps take this into account. Default: 80.
147# Sometimes, language extensions are specified in a cabal file or from the
148# command line instead of using language pragmas in the file. stylish-haskell
149# needs to be aware of these, so it can parse the file correctly.
151# No language extensions are enabled by default.
152# language_extensions:
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list