Set proper indentation base level for operands
parent
a6e187e962
commit
628ab81bc9
|
@ -1084,9 +1084,20 @@ func = do
|
||||||
-- but that's a type error.
|
-- but that's a type error.
|
||||||
let jebnaZiegui = UtatUcaOrgmqf
|
let jebnaZiegui = UtatUcaOrgmqf
|
||||||
$ eqazak
|
$ eqazak
|
||||||
(NO.kaeyuo . NO.FUGOKovsxq)
|
(NO.kaeyuo . NO.FUGOKovsxq)
|
||||||
(maybe (NO.kaeyuo NO.UvmsoItqOguTOLqtuld)
|
(maybe (NO.kaeyuo NO.UvmsoItqOguTOLqtuld)
|
||||||
(NO.kaeyuo . NO.XvswJUBeroci)
|
(NO.kaeyuo . NO.XvswJUBeroci)
|
||||||
)
|
)
|
||||||
nogcVassuVvbFiew
|
nogcVassuVvbFiew
|
||||||
kyxson = vzahxEooRecOriqdp apneZejuzTfuQkuJosqoa
|
kyxson = vzahxEooRecOriqdp apneZejuzTfuQkuJosqoa
|
||||||
|
|
||||||
|
#test base level for operands
|
||||||
|
func = do
|
||||||
|
pure
|
||||||
|
$!! otherFunc
|
||||||
|
(SomeLargeRecord { aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = 1
|
||||||
|
, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb = 2
|
||||||
|
, cccccccccccccccccccccccccccccccccc = 3
|
||||||
|
}
|
||||||
|
)
|
||||||
|
anotherArgument
|
||||||
|
|
|
@ -425,7 +425,7 @@ layoutOpTree allowSinglelinePar = \case
|
||||||
let singlelineUnlessFree = case indentPolicy of
|
let singlelineUnlessFree = case indentPolicy of
|
||||||
IndentPolicyLeft -> docForceSingleline
|
IndentPolicyLeft -> docForceSingleline
|
||||||
IndentPolicyMultiple -> docForceSingleline
|
IndentPolicyMultiple -> docForceSingleline
|
||||||
IndentPolicyFree -> id
|
IndentPolicyFree -> docSetBaseY
|
||||||
let curIsPrec0 = case fixity of
|
let curIsPrec0 = case fixity of
|
||||||
Nothing -> False
|
Nothing -> False
|
||||||
Just (Fixity _ prec _) -> prec == 0
|
Just (Fixity _ prec _) -> prec == 0
|
||||||
|
|
Loading…
Reference in New Issue