summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--data/stylish-haskell.yaml12
-rw-r--r--src/Language/Haskell/Stylish/Config.hs10
2 files changed, 11 insertions, 11 deletions
diff --git a/data/stylish-haskell.yaml b/data/stylish-haskell.yaml
index 86baae3..efc5695 100644
--- a/data/stylish-haskell.yaml
+++ b/data/stylish-haskell.yaml
@@ -37,33 +37,33 @@ steps:
#
# List align has following options:
#
- # - after alias: Import list is aligned with end of import including
+ # - after_alias: Import list is aligned with end of import including
# 'as' and 'hiding' keywords.
#
# > import qualified Data.List as List (concat, foldl, foldr, head,
# > init, last, length)
#
- # - with alias: Import list is aligned with start of alias or hiding.
+ # - with_alias: Import list is aligned with start of alias or hiding.
#
# > import qualified Data.List as List (concat, foldl, foldr, head,
# > init, last, length)
#
- # - new line: Import list starts always on new line.
+ # - new_line: Import list starts always on new line.
#
# > import qualified Data.List as List
# > (concat, foldl, foldr, head, init, last, length)
#
# Default: after alias
- list_align: after alias
+ list_align: after_alias
# Long list align style takes effect when import is too long. This is
# determined by 'columns' setting.
#
# - inline: This option will put as much specs on same line as possible.
#
- # - new line: Import list will start on new line.
+ # - new_line: Import list will start on new line.
#
- # - new line-multiline: Import list will start on new line when it's
+ # - new_line_multiline: Import list will start on new line when it's
# short enough to fit to single line. Otherwise it'll be multiline.
#
# - multiline: One line per import list entry.
diff --git a/src/Language/Haskell/Stylish/Config.hs b/src/Language/Haskell/Stylish/Config.hs
index 271a461..556002d 100644
--- a/src/Language/Haskell/Stylish/Config.hs
+++ b/src/Language/Haskell/Stylish/Config.hs
@@ -181,15 +181,15 @@ parseImports config o = Imports.step
]
listAligns =
- [ ("new line", Imports.NewLine)
- , ("with alias", Imports.WithAlias)
- , ("after alias", Imports.AfterAlias)
+ [ ("new_line", Imports.NewLine)
+ , ("with_alias", Imports.WithAlias)
+ , ("after_alias", Imports.AfterAlias)
]
longListAligns =
[ ("inline", Imports.Inline)
- , ("new line", Imports.InlineWithBreak)
- , ("new line-multiline", Imports.InlineToMultiline)
+ , ("new_line", Imports.InlineWithBreak)
+ , ("new_line_multiline", Imports.InlineToMultiline)
, ("multiline", Imports.Multiline)
]