
9 Aug
2007
9 Aug
'07
10:19 a.m.
Christian Maeder wrote:
Isaac Dupree wrote:
@@@ a b = ((a + b) : a) + b
Could -ddump-parsed not simply omit these (wrong) left-associative parentheses? What information would be lost?
The information about how GHC's parser currently handles infixes. The intent of the -ddump-xxx flags (I think) is to give a readable representation of ghc's internal state, e.g. for debugging. However it very well might be that omitting those parentheses would yield a Haskell module equivalent to the original file, which would be a nice thing to be able to get somehow, anyway. Isaac