wondering about -ddump-parsed, rn

Simon Peyton-Jones simonpj at microsoft.com
Mon Aug 20 06:04:16 EDT 2007

I'm not sure what you are suggesting here.  Can you be more explicit?

| -----Original Message-----
| From: Isaac Dupree [mailto:isaacdupree at charter.net]
| Sent: 09 August 2007 10:51
| To: Simon Peyton-Jones
| Cc: GHC Users
| Subject: Re: wondering about -ddump-parsed, rn
| Simon Peyton-Jones wrote:
| > -ddump-parsed shows the program after parsing.  All operator application are parsed *left-
| associative* with one precedence. Then the renamer re-associates them to respect precedence and
| associativity.
| >
| > So, no, -ddump-parsed will definitely not give syntactically valid Haskell. -ddump-rn probably will
| though.
| yes, in that case, would anyone mind if I find an easy way to change GHC
| to parenthesize those non-infix uses of operators? :)  hmm... maybe _I_
| would mind, since it makes "what GHC is doing" just a tiny bit less
| transparent to the user of -ddump-{rn,parsed}. :-)
| Isaac

More information about the Glasgow-haskell-users mailing list