FIX #1215: GHC fails to respect the maximal munch rule while lexing "qualified reserv...
authorSimon Marlow <simonmar@microsoft.com>
Tue, 24 Jul 2007 13:04:17 +0000 (13:04 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 24 Jul 2007 13:04:17 +0000 (13:04 +0000)
commit31cf07bc6d4aa5babc48498c6c4198b642f50390
tree45d10eec122e6b4db3c840c78eacca38023a553a
parent911ab82c2a7c1aaf8feb78731f0bae588d244e14
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.
compiler/parser/Lexer.x