mirror of
https://github.com/ilyakooo0/ormolu.git
synced 2024-10-27 03:28:33 +03:00
Change multiway if layout to keep consistent 2-space indent increase
This commit is contained in:
parent
d0a44c23cb
commit
ee3c506889
@ -3,7 +3,8 @@
|
||||
foo x = if | x == 5 -> 5
|
||||
|
||||
bar x y =
|
||||
if | x > y -> x
|
||||
| x < y ->
|
||||
y
|
||||
| otherwise -> x
|
||||
if
|
||||
| x > y -> x
|
||||
| x < y ->
|
||||
y
|
||||
| otherwise -> x
|
||||
|
@ -549,8 +549,9 @@ p_hsExpr = \case
|
||||
breakpoint
|
||||
inci (p_hsExpr x)
|
||||
HsMultiIf NoExt guards -> do
|
||||
txt "if "
|
||||
sitcc $ sep newline (located' (p_grhs RightArrow)) guards
|
||||
txt "if"
|
||||
breakpoint
|
||||
inci . sitcc $ sep newline (located' (p_grhs RightArrow)) guards
|
||||
HsLet NoExt localBinds e -> do
|
||||
txt "let "
|
||||
sitcc (located localBinds p_hsLocalBinds)
|
||||
|
Loading…
Reference in New Issue
Block a user