lconfig_indentAmount not respected for where clauses when lconfig_indentWhereSpecial is on #39

Closed
opened 2017-08-05 14:20:40 +02:00 by fmthoma · 2 comments
fmthoma commented 2017-08-05 14:20:40 +02:00 (Migrated from github.com)

Config:
Default config except for lconfig_indentAmount = 4 (rather than 2).

Example:

main = foo                 
  where
    foo = do    
        putStrLn "Hello"
        putStrLn "World"

Output:

main = foo
 where
  foo = do
      putStrLn "Hello"
      putStrLn "World"

Expected: Output same as input (where indented by two spaces, foo = do … by four), rather than one and two space, respectively.

Config: Default config except for `lconfig_indentAmount = 4` (rather than `2`). Example: ```haskell main = foo where foo = do putStrLn "Hello" putStrLn "World" ``` Output: ```haskell main = foo where foo = do putStrLn "Hello" putStrLn "World" ``` Expected: Output same as input (`where` indented by two spaces, `foo = do …` by four), rather than one and two space, respectively.
lspitzner commented 2017-08-05 16:15:21 +02:00 (Migrated from github.com)

thanks for reporting! Haven't tested extensively, but it seems simple enough.

thanks for reporting! Haven't tested extensively, but it seems simple enough.
fmthoma commented 2017-08-06 10:51:30 +02:00 (Migrated from github.com)

Tried it on dev branch, works :-) Thank you!

Tried it on dev branch, works :-) Thank you!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#39
There is no content yet.