[Haskell-cafe] Multi-pattern LambdaCase?

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Tue Jan 27 12:38:25 UTC 2015


Is there a particular reason that LambdaCase does not support muliple
patterns?  Specifically I am suggesting that

    \case { pA1 pA2 pA3 -> eA, ... }

be sugar for

    \freshName1 freshName2 freshName3
        -> case freshName1 freshName2 freshName3 of { pA1 pA2 pA3 -> eA, ... }

Is there some technical reason that prevents it?

Tom


More information about the Haskell-Cafe mailing list