packages feed

ormolu-0.0.1.0: data/examples/declaration/value/function/lambda-case.hs

{-# LANGUAGE LambdaCase #-}

foo = bar (\case JKey{} -> True; _ -> False)

foo :: Int -> Int
foo = \case
  5 -> 10
  i  | i > 5 -> 11
  _ -> 12