#5542: also parse class/instance declarations as "HEAD <= CONTEXT where"
---------------------------------+------------------------------------------
    Reporter:  nfrisby           |       Owner:                   
        Type:  feature request   |      Status:  new              
    Priority:  normal            |   Component:  Compiler (Parser)
     Version:  7.2.1             |    Keywords:                   
    Testcase:                    |   Blockedby:                   
          Os:  Unknown/Multiple  |    Blocking:                   
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown     
---------------------------------+------------------------------------------

Comment(by porges):

 I just added <= as a reserved word into Lexer.x and then in Parser.y
 duplicated all mentions of => with <= as well. Doing this adds about 10
 shift/reduce conflicts and 5 or so reduce/reduce conflicts.

 It does compile and work, but things like this make GHC panic:

     instance Show a => Foo a <= Show a where

 :)

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