wondering about -ddump-parsed, rn

Christian Maeder Christian.Maeder at dfki.de
Thu Aug 9 08:56:54 EDT 2007


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



More information about the Glasgow-haskell-users mailing list