diff options
author | Mikhail Glushenkov <the.dead.shall.rise@gmail.com> | 2012-11-04 00:51:49 +0100 |
---|---|---|
committer | Mikhail Glushenkov <the.dead.shall.rise@gmail.com> | 2012-11-05 10:53:04 +0100 |
commit | 04982b5bba719d84fdd8dd567af5493abf0dbd60 (patch) | |
tree | 02a2aafbe8454dbc5bac6c8286ec78828d6946c4 /data | |
parent | 7c96e69a4494aa0a1c41b1dcb5f65ff19bff64b6 (diff) | |
download | stylish-haskell-04982b5bba719d84fdd8dd567af5493abf0dbd60.tar.gz |
Add a new import alignment mode 'file'.
This mode is like 'global', but doesn't add paddding for non-existent qualified
imports.
For example, with 'global'
import A
import B
is always transformed to
import A
import B
even if there are no qualified imports in the whole file.
Diffstat (limited to 'data')
-rw-r--r-- | data/stylish-haskell.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/stylish-haskell.yaml b/data/stylish-haskell.yaml index c128830..080c2f9 100644 --- a/data/stylish-haskell.yaml +++ b/data/stylish-haskell.yaml @@ -22,6 +22,9 @@ steps: # - global: Align the import names and import list throughout the entire # file. # + # - file: Like global, but don't add padding when there are no qualified + # imports in the file. + # # - group: Only align the imports per group (a group is formed by adjacent # import lines). # |