From 04982b5bba719d84fdd8dd567af5493abf0dbd60 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Sun, 4 Nov 2012 00:51:49 +0100 Subject: 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. --- data/stylish-haskell.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data') 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). # -- cgit v1.2.3