#1215: GHC fails to respect the maximal munch rule while lexing "qualified
reservedids"
-------------------------------------------------+--------------------------
    Reporter:  Stefan O'Rear <[EMAIL PROTECTED]>  |        Owner:  simonmar   
        Type:  bug                               |       Status:  closed     
    Priority:  low                               |    Milestone:  6.8        
   Component:  Compiler (Parser)                 |      Version:  6.6        
    Severity:  normal                            |   Resolution:  fixed      
    Keywords:                                    |   Difficulty:  Easy (1 hr)
          Os:  Unknown                           |     Testcase:             
Architecture:  Unknown                           |  
-------------------------------------------------+--------------------------
Changes (by simonmar):

  * resolution:  => fixed
  * status:  new => closed

Comment:

 Fixed:

 {{{
 Tue Jul 24 14:04:17 BST 2007  Simon Marlow <[EMAIL PROTECTED]>
   * FIX #1215: GHC fails to respect the maximal munch rule while lexing
 "qualified reservedids"

   I didn't actually fix this to respect Haskell 98, instead I changed it
   to follow the proposal for Haskell':

   http://hackage.haskell.org/cgi-bin/haskell-
 prime/trac.cgi/wiki/QualifiedIdentifiers

   Rationale:

     - We didn't respect Haskell 98 with respect to qualified symbols
 either
     - The Haskell' change makes things much cleaner
     - Obeying the Haskell 98 spec literally has some unintended
       consequences (e.g. M.where must lex as "M.wher" "e")
     - Any programs that compiled before this change and do not compile
       after it were illegal according to Haskell 98 anyway.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1215>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to