[Haskell] Re: Views in Haskell

2007-01-24 Thread apfelmus
Simon Peyton-Jones wrote: > > http://hackage.haskell.org/trac/haskell-prime/wiki/ViewPatterns > > I'm thinking of implementing it in GHC, so I'd be interested in > feedback of the form > - how desirable is it to have a feature of this general form? > - can this particular proposal b

[Haskell] Re: Views in Haskell

2007-01-22 Thread Benjamin Franksen
David Roundy wrote: > Another idea is whether the syntax could be extended to indicate a failure > to match? This would actually be useful even without views, but it's > particularly useful with views (and especially so in the context of the > above warnings). I'd imagine something like (with stup

[Haskell] Re: Views in Haskell

2007-01-22 Thread Stefan Monnier
> Provoked by a discussion with Don Syme, and after some helpful > conversations at POPL, I have finally written up a proposal for adding > "view patterns" to Haskell. We've wanted views for a long time, but they > have never made it, into GHC at any rate. This proposal is a very > lightweight (a