Associativity of ViewPatterns
Hello, Why is the following a syntax error: f (view1 -> view2 -> pattern) = ... and the following isn't: f (view1 -> (view2 -> pattern)) = ... I would prefer the first version. regards, Bas
Good point. I'll fix that, in HEAD at least. Simon | -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users- | bounces@haskell.org] On Behalf Of Bas van Dijk | Sent: 06 January 2010 12:44 | To: glasgow-haskell-users@haskell.org | Subject: Associativity of ViewPatterns | | Hello, | | Why is the following a syntax error: | | f (view1 -> view2 -> pattern) = ... | | and the following isn't: | | f (view1 -> (view2 -> pattern)) = ... | | I would prefer the first version. | | regards, | | Bas | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Yes I did. That too was an oversight. Thanks for pointing both out. S | -----Original Message----- | From: Bas van Dijk [mailto:v.dijk.bas@gmail.com] | Sent: 07 January 2010 08:44 | To: Simon Peyton-Jones | Cc: glasgow-haskell-users@haskell.org | Subject: Re: Associativity of ViewPatterns | | On Wed, Jan 6, 2010 at 5:34 PM, Simon Peyton-Jones | <simonpj@microsoft.com> wrote: | > Good point. I'll fix that, in HEAD at least. | | Thanks, | | BTW did you fix the infix instance headers problem in HEAD I | previously mailed about? | | regards, | | Bas
participants (2)
-
Bas van Dijk -
Simon Peyton-Jones