{-# LANGUAGE LambdaCase #-} func = \case FooBar -> x Baz -> y