summaryrefslogtreecommitdiffhomepage
path: root/data
diff options
context:
space:
mode:
authorOndřej Janošík <j.ondra14@gmail.com>2015-07-09 15:46:55 +0200
committerOndřej Janošík <j.ondra14@gmail.com>2015-07-09 15:46:55 +0200
commit435af629f2808c5c167b4a02ac8987ed5a8457bf (patch)
treeac1dbe1c833bb9b6e642b08ccd304dd0e98fa587 /data
parent184591eda03be2de00613d1ddcc9234f2da95562 (diff)
downloadstylish-haskell-435af629f2808c5c167b4a02ac8987ed5a8457bf.tar.gz
Updated default configuration file
Diffstat (limited to 'data')
-rw-r--r--data/stylish-haskell.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/data/stylish-haskell.yaml b/data/stylish-haskell.yaml
index 8ceb732..d877956 100644
--- a/data/stylish-haskell.yaml
+++ b/data/stylish-haskell.yaml
@@ -32,6 +32,50 @@ steps:
#
# Default: global.
align: global
+ # Folowing options affect only import list alignment.
+ #
+ # List align has following options:
+ #
+ # - after alias: Import list is aligned with end of import including
+ # 'as' and 'hiding' keywords.
+ #
+ # > import qualified Data.List as List (concat, foldl, foldr, head,
+ # > init, last, length)
+ #
+ # - with alias: Import list is aligned with start of alias or hiding.
+ #
+ # > import qualified Data.List as List (concat, foldl, foldr, head,
+ # > init, last, length)
+ #
+ # - new line: Import list starts always on new line.
+ #
+ # > import qualified Data.List as List
+ # > (concat, foldl, foldr, head, init, last, length)
+ #
+ # Default: after alias
+ list_align: after alias
+ # Long list align style takes effect when import is too long. This is
+ # determined by 'columns' setting.
+ #
+ # - inline: This option will put as much specs on same line as possible.
+ #
+ # - new line: Import list will start on new line.
+ #
+ # - multiline: One line per import list entry.
+ # Type with contructor list acts like single import.
+ #
+ # > import qualified Data.Map as M
+ # > ( empty
+ # > , singleton
+ # > , ...
+ # > , delete
+ # > )
+ #
+ # Default: inline
+ long_list_align: inline
+ # List padding determines indentation of import list on lines after import.
+ # This option affects 'list_align' and 'long_list_align'.
+ list_padding: 4
# Language pragmas
- language_pragmas: