Re: [Haskell-cafe] Re: proposal: point free case expressions

2009-11-05 Thread Eugene Kirpichov
2009/11/5 Edward Kmett : > On Thu, Nov 5, 2009 at 10:59 AM, Stefan Monnier > wrote: >> >> > We could really use a case statement in which we skip the scrutinee and >> > make >> > (case of {})' be syntactic sugar for `(\x -> case x of {})'. >> >> > So we could write: >> >> >> myFunc = anotherFunc $

Re: [Haskell-cafe] Re: proposal: point free case expressions

2009-11-05 Thread Joe Fredette
Don't these things generally get added as LANGUAGE pragmas though? If it's off by default then peoples code should be okay. Also, I'd prefer something like `cases` as the keyword, rather than `case of`, mostly for aesthetics, but also so that, upon visual inspection, I wouldn't wonder where