RE: [Haskell-cafe] Re: how to see operators precedence in GHCi

2007-08-02 Thread Simon Peyton-Jones
Hmm. Good point. Fixed. Smion | -Original Message- | From: Stefan O'Rear [mailto:[EMAIL PROTECTED] | Sent: 26 July 2007 01:01 | To: Simon Peyton-Jones | Cc: Bulat Ziganshin; haskell-cafe@haskell.org; Jon Fairbairn | Subject: Re: [Haskell-cafe] Re: how to see operators precedence in GHCi

[Haskell-cafe] Re: how to see operators precedence in GHCi

2007-07-25 Thread Jon Fairbairn
Bulat Ziganshin [EMAIL PROTECTED] writes: Hello , from http://community.livejournal.com/ru_declarative/54566.html Q: how to see operators precedence in GHCi? A: Prelude let showParen = (undefined::()-()) Prelude showParen $ 2+3*4 interactive:1:12: No instance for (Num

Re: [Haskell-cafe] Re: how to see operators precedence in GHCi

2007-07-25 Thread Bulat Ziganshin
Hello Jon, Wednesday, July 25, 2007, 8:07:57 PM, you wrote: Q: how to see operators precedence in GHCi? In the definition of `it': it = showParen $ (2 + (3 * 4)) Hmm, OK, but not that much quicker than going Prelude :info (*) it just my poor english :) i mean - how to see how

RE: [Haskell-cafe] Re: how to see operators precedence in GHCi

2007-07-25 Thread Simon Peyton-Jones
| Uhm... that didn't work :) | | Not quite as nice: | | [EMAIL PROTECTED]:~$ ghci -ddump-rn-trace You probably wanted -ddump-rn Simon ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: how to see operators precedence in GHCi

2007-07-25 Thread Stefan O'Rear
On Thu, Jul 26, 2007 at 12:42:52AM +0100, Simon Peyton-Jones wrote: | Uhm... that didn't work :) | | Not quite as nice: | | [EMAIL PROTECTED]:~$ ghci -ddump-rn-trace You probably wanted -ddump-rn Seemed so, but that option has no effect (bug?): [EMAIL PROTECTED]:~$ ghci -ddump-rn

Re: [Haskell-cafe] Re: how to see operators precedence in GHCi

2007-07-25 Thread Stefan O'Rear
On Wed, Jul 25, 2007 at 10:55:56AM -0700, Stefan O'Rear wrote: On Wed, Jul 25, 2007 at 09:35:38PM +0400, Bulat Ziganshin wrote: Hello Jon, Wednesday, July 25, 2007, 8:07:57 PM, you wrote: Q: how to see operators precedence in GHCi? In the definition of `it': it = showParen $ (2 +