diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-02-01 11:05:06 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2016-02-01 11:05:06 +0100 |
commit | 95f27fee0b5abed6052b7675b5b8bd6e77cb092d (patch) | |
tree | aa0cd761c5787e0d90a0f562c39dcbdca106803d | |
parent | bf2138aa25af19c1d9993a8d68d0f5795b09dad1 (diff) | |
download | stylish-haskell-95f27fee0b5abed6052b7675b5b8bd6e77cb092d.tar.gz |
Use underscores in the yaml options
-rw-r--r-- | data/stylish-haskell.yaml | 12 | ||||
-rw-r--r-- | src/Language/Haskell/Stylish/Config.hs | 10 |
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) ] |