packages feed

fourmolu-0.0.6.0: data/examples/declaration/value/function/lambda-case-out.hs

{-# LANGUAGE LambdaCase #-}

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

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