summaryrefslogtreecommitdiffhomepage
path: root/data
diff options
context:
space:
mode:
authorLinus Arver <larver@imvu.com>2017-05-09 03:05:54 -0700
committerJasper Van der Jeugt <jaspervdj@gmail.com>2017-05-09 12:05:54 +0200
commit03e1712b9da40c366f459b53555963e69eb288ec (patch)
treeeb6d2fef169aa1d0092cbdb0f83bfa1ca190e611 /data
parent234431a6ac375da9bceb865f65cbe5d1b529d5ef (diff)
downloadstylish-haskell-03e1712b9da40c366f459b53555963e69eb288ec.tar.gz
Add space_surround option to import styling
Diffstat (limited to 'data')
-rw-r--r--data/stylish-haskell.yaml16
1 files changed, 16 insertions, 0 deletions
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.