[GHC] #5141: syntax error in pretty-printed kind ascriptions

GHC cvs-ghc at haskell.org
Wed Apr 20 18:59:52 CEST 2011


#5141: syntax error in pretty-printed kind ascriptions
------------------------------------------------+---------------------------
  Reporter:  megacz                             |          Owner:                  
      Type:  bug                                |         Status:  closed          
  Priority:  normal                             |      Milestone:                  
 Component:  Compiler                           |        Version:  7.0.3           
Resolution:  fixed                              |       Keywords:                  
  Testcase:                                     |      Blockedby:                  
Difficulty:                                     |             Os:  Unknown/Multiple
  Blocking:                                     |   Architecture:  Unknown/Multiple
   Failure:  Incorrect warning at compile-time  |  
------------------------------------------------+---------------------------

Comment(by megacz):

 Grr, in my previous post, "namespace" should actually be "lexical token
 class", and in my example (**) is a tycon, not a datacon.

 Apparently this still ''is'' confusing for me :)

 At the moment, if I understand correctly, {{{-XTypeOperators}}} considers
 symbols starting with a colon to belong to the tycon/type/datacon lexical
 token class ("upper case identifiers") while all other symbols belong to
 the expression/tyvar lexical token class ("lower case identifiers").  With
 -XSymbolsAreTyCons, does "starts with a colon" no longer matter?  That
 would be sort of nice.

   - a

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5141#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list