[GHC] #5492: Underscore not a valid name for a class member

GHC cvs-ghc at haskell.org
Fri Sep 16 02:07:24 CEST 2011


#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



More information about the Glasgow-haskell-bugs mailing list