
| I should note that I can say this in 7.8.3:
|
| foo :: Show a => Eq a => a -> String
| foo x = show x ++ show (x == x)
Yes, that's right. SO using two arrows for pattern synonyms would be an abuse of notation. But (a) the 'pattern' keyword signals that something different is coming up, (b) used in an expression, the type does have the same meaning (i.e. both contexts are required), (c) the alternatives seem worse!
Simon
| -----Original Message-----
| From: Richard Eisenberg [mailto:eir@cis.upenn.edu]
| Sent: 10 November 2014 03:03
| To: Simon Peyton Jones
| Cc: Dr. ERDI Gergo; GHC Devs
| Subject: Re: Concrete syntax for pattern synonym type signatures
|
|
| On Nov 9, 2014, at 2:11 PM, Simon Peyton Jones