summaryrefslogtreecommitdiffhomepage
path: root/data
diff options
context:
space:
mode:
authorYuriy Syrovetskiy <cblp@cblp.su>2017-06-19 14:54:06 +0300
committerJasper Van der Jeugt <jaspervdj@gmail.com>2017-06-19 13:54:06 +0200
commit8dfa649696c6321b34bdd124020d8afc03c8c9bc (patch)
treec46f16cf16e630f60c16a9fba5852e2cee901213 /data
parentfd96055ef151d9ba0e38fbc518f63254c22d0eef (diff)
downloadstylish-haskell-8dfa649696c6321b34bdd124020d8afc03c8c9bc.tar.gz
Add `imports.list_same_align` option
Diffstat (limited to 'data')
-rw-r--r--data/stylish-haskell.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/data/stylish-haskell.yaml b/data/stylish-haskell.yaml
index 8c57f51..a5789d1 100644
--- a/data/stylish-haskell.yaml
+++ b/data/stylish-haskell.yaml
@@ -64,6 +64,25 @@ steps:
# Default: after_alias
list_align: after_alias
+ # Keep the same alignment between imports in a group:
+ #
+ # - true: a little more readable
+ #
+ # > import qualified Data.List as List (concat, foldl, foldr,
+ # > init, last, length)
+ # > import qualified Data.List.Extra as List (concat, foldl, foldr,
+ # > init, last, length)
+ #
+ # - false: diff-safe
+ #
+ # > import qualified Data.List as List (concat, foldl, foldr, init,
+ # > last, length)
+ # > import qualified Data.List.Extra as List (concat, foldl, foldr,
+ # > init, last, length)
+ #
+ # Default: true
+ list_same_align: true
+
# Long list align style takes effect when import is too long. This is
# determined by 'columns' setting.
#