Allow case-of Blockargument operand with par-spacing
parent
9d14407191
commit
9737cb3adc
|
@ -1108,3 +1108,8 @@ func = do
|
||||||
some long function invocation (plus a paren + ed operator expression)
|
some long function invocation (plus a paren + ed operator expression)
|
||||||
`shouldReturn` all ((==) True)
|
`shouldReturn` all ((==) True)
|
||||||
:: IO ()
|
:: IO ()
|
||||||
|
|
||||||
|
#test allow operator plus paragraph case-of BlockArgument
|
||||||
|
func arg = abc ++ def ++ case arg of
|
||||||
|
False -> ghi
|
||||||
|
True -> jkl
|
||||||
|
|
|
@ -22,6 +22,7 @@ allowAsOpPar :: LHsExpr GhcPs -> Bool
|
||||||
allowAsOpPar = \case
|
allowAsOpPar = \case
|
||||||
L _ HsLam{} -> True
|
L _ HsLam{} -> True
|
||||||
L _ HsLamCase{} -> True
|
L _ HsLamCase{} -> True
|
||||||
|
L _ HsCase{} -> True
|
||||||
L _ HsDo{} -> True
|
L _ HsDo{} -> True
|
||||||
_ -> False
|
_ -> False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue