#1215: GHC fails to respect the maximal munch rule while lexing "qualified
reservedids"
----------------------------------------------+-----------------------------
Reporter: Stefan O'Rear <[EMAIL PROTECTED]> | Owner: simonmar
Type: bug | Status: new
Priority: low | Milestone: 6.8
Component: Compiler (Parser) | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------------------------------+-----------------------------
Changes (by simonmar):
* difficulty: Unknown => Easy (1 hr)
* milestone: => 6.8
* owner: => simonmar
Comment:
Interesting. It turns out I misinterpreted the Haskell lexical syntax:
GHC lexes `M.default` as `M` `.` `default`, because `M.default` is not a
valid qvarid but I neglected to take into account the maximal munch rule.
We have an open ticket for Haskell' about this:
[http://hackage.haskell.org/cgi-bin/haskell-
prime/trac.cgi/wiki/QualifiedIdentifiers], which was until just now
inaccurate (I've now fixed it). I propose to fix GHC in 6.8 to match the
Haskell' proposal.
--
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