packages feed

fourmolu-0.2.0.0: data/examples/declaration/value/function/case-multi-line-guards-four-out.hs

withGuards :: Int -> Int
withGuards x =
    case x of
        x
            | x > 10 ->
                foo
                    + bar
        x | x > 5 -> 10
        _ -> 20

case x of
    '-' | not isUrl -> case xs of
        _ -> emitc '-'
    '*' | not isUrl ->
        case xs of
            _ -> emitc '*'