From 03e1712b9da40c366f459b53555963e69eb288ec Mon Sep 17 00:00:00 2001 From: Linus Arver Date: Tue, 9 May 2017 03:05:54 -0700 Subject: Add space_surround option to import styling --- data/stylish-haskell.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'data') diff --git a/data/stylish-haskell.yaml b/data/stylish-haskell.yaml index 8f42eff..8c57f51 100644 --- a/data/stylish-haskell.yaml +++ b/data/stylish-haskell.yaml @@ -126,6 +126,22 @@ steps: # Default: true separate_lists: true + # Space surround option affects formatting of import lists on a single + # line. The only difference is single space after the initial + # parenthesis and a single space before the terminal parenthesis. + # + # - true: There is single space associated with the enclosing + # parenthesis. + # + # > import Data.Foo ( foo ) + # + # - false: There is no space associated with the enclosing parenthesis + # + # > import Data.Foo (foo) + # + # Default: false + space_surround: false + # Language pragmas - language_pragmas: # We can generate different styles of language pragma lists. -- cgit v1.2.3