[GHC] #7671: No break spaces

GHC cvs-ghc at haskell.org
Sat Feb 23 20:20:23 CET 2013


#7671: No break spaces
----------------------------------+-----------------------------------------
    Reporter:  zenzike            |       Owner:                  
        Type:  bug                |      Status:  new             
    Priority:  normal             |   Milestone:  7.8.1           
   Component:  Compiler (Parser)  |     Version:  7.6.2           
    Keywords:  alex lexer         |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |     Failure:  None/Unknown    
  Difficulty:  Unknown            |    Testcase:  T7671           
   Blockedby:                     |    Blocking:                  
     Related:                     |  
----------------------------------+-----------------------------------------
Changes (by igloo):

  * keywords:  => alex lexer
  * difficulty:  => Unknown
  * component:  Compiler => Compiler (Parser)
  * testcase:  => T7671
  * milestone:  => 7.8.1


Comment:

 Thanks for the report. This is meant to work, but it's broken.

 It looks like what's going wrong is that `known_pragma` is assuming that
 `len` is a number of bytes, but it's actually a number of characters. It
 therefore sees `-#\160LAN[...]` when it expects `{-#\160LAN[...]`.

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



More information about the ghc-tickets mailing list