
9 Aug
2007
9 Aug
'07
8:56 a.m.
Isaac Dupree wrote:
Is ghc -ddump-parsed supposed to give parse-syntactically valid Haskell? It nearly does - the only way I've seen it not do so is infix type-signatures and some infix definitions. Answer: no, look at what it does to the operators with fixities. But, -ddump-rn seems better...
file:
(@@@) :: a a @@@ b = a + b : a + b
==================== Parser ==================== @@@ :: a @@@ a b = ((a + b) : a) + b
Could -ddump-parsed not simply omit these (wrong) left-associative parentheses? What information would be lost? Cheers Christian