#1821: Parser or lexer mess-up
-------------------------+--------------------------------------------------
    Reporter:  simonpj   |       Owner:         
        Type:  bug       |      Status:  new    
    Priority:  normal    |   Milestone:         
   Component:  Compiler  |     Version:  6.9    
    Severity:  normal    |    Keywords:         
  Difficulty:  Unknown   |    Testcase:         
Architecture:  Unknown   |          Os:  Unknown
-------------------------+--------------------------------------------------
 This program gives a parse error:
 {{{
 module Par where

 f x = x
   where
 -- ######### x86_64 machine code:
     g y = y
     h y = y
 }}}
 With the HEAD we get:
 {{{
 Par.hs:7:8: parse error on input `='
 }}}
 This is killing the stage2 build of the HEAD, in `ByteCodeFFI`:
 {{{
 ghci/ByteCodeFFI.lhs:444:26: parse error on input `='
 }}}

 The problem is something to do with the comment (!).  Remove it, and all
 is fine. I think something to do with Haddock.  But surely comments should
 not mess up code?  Programmers unaware of Haddock will not even look at
 the comments when trying to correct parse errors!

 Happily 6.8 seems ok.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1821>
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