[GHC] #1491: Extension RecordWildCards is broken

GHC trac at galois.com
Thu Jul 5 03:57:58 EDT 2007


#1491: Extension RecordWildCards is broken
-------------------------+--------------------------------------------------
    Reporter:  guest     |        Owner:         
        Type:  bug       |       Status:  new    
    Priority:  normal    |    Milestone:         
   Component:  Compiler  |      Version:  6.7    
    Severity:  normal    |   Resolution:         
    Keywords:            |   Difficulty:  Unknown
          Os:  Windows   |     Testcase:         
Architecture:  Unknown   |  
-------------------------+--------------------------------------------------
Comment (by simonpj):

 Yes, I'm sorry Lennart.  As we both discovered, the current design of
 rnPat is not well suited to this, and both our patches rely in a very
 delicate way on shadowing the record selectors with local bindings for the
 same Name.  As it turned out, this delicacy is just about ok when the
 record is defined in the same module, but not when it's imported.  But
 that's because we are doing the Wrong Thing.

 I have been ruminating about how to re-factor rnPat to do the Right Thing
 but I've been too busy with OSCON tutorial to do it.  Is it day-to-day
 urgent for you?

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1491>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list