#5492: Underscore not a valid name for a class member
---------------------------------+------------------------------------------
    Reporter:  trinithis         |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.0.4             |    Keywords:  underscore _
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 The following program is rejected:


 {{{
 class Foo a where
   _ :: a
 }}}

 Note I could only reproduce when using a single underscore character.
 Multiple underscores work fine. Mixing underscores with other identifier
 characters works as well.

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