packages feed

fourmolu-0.2.0.0: data/examples/declaration/value/function/multi-way-if-four-out.hs

{-# LANGUAGE MultiWayIf #-}

foo x = if | x == 5 -> 5

bar x y =
    if
            | x > y -> x
            | x < y ->
                y
            | otherwise -> x

baz =
    if
            | p -> f
            | otherwise -> g
        x