Thu May  4 04:18:04 PDT 2006  [EMAIL PROTECTED]
  * Fix precedence for records in derived Read
  
  The derived instance for Read of records wasn't quite right.
  Consider
        data T = T1 T | T2 { x::Int }
  
  The string "T1 T2 { x=2 }" should parse correctly as 
        T1 (T2 {x=2})
  because of Haskell's odd precedence rules (record construction binds
  even more tightly than application), but the derived Read didn't take
  account of that.
  
  drvrun020 is the regression test
  
  

    M ./compiler/typecheck/TcGenDeriv.lhs -6 +12
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to