[GHC] #3645: Layout and pragmas

GHC cvs-ghc at haskell.org
Tue Dec 14 22:50:54 CET 2010


#3645: Layout and pragmas
----------------------------------+-----------------------------------------
    Reporter:  igloo              |        Owner:              
        Type:  feature request    |       Status:  patch       
    Priority:  normal             |    Milestone:  7.0.1       
   Component:  Compiler (Parser)  |      Version:  6.10.4      
    Keywords:                     |     Testcase:              
   Blockedby:                     |   Difficulty:  Unknown     
          Os:  Unknown/Multiple   |     Blocking:              
Architecture:  Unknown/Multiple   |      Failure:  None/Unknown
----------------------------------+-----------------------------------------

Comment(by michalt):

 Replying to [comment:9 boris]:
 > You are right, \n"#-}" is not enough. I missed the case when several \n
 occur.
 > Function lexToken calls alexScanUser, so it should match some tokens,
 should
 > not it? I am new to Alex and can be mistaken. Can you explain why it
 does not
 > match any tokens?

 Sorry for confusion, I meant that `lexTokens` only checks for eof/errors
 and
 calls an appropriate action to create token, but does not really directly
 inspect the input (it just uses `alexScanUser`). And that's why I don't
 think it
 is the right place to put some special case for closing the pragma.

 Anyway, I guess the best thing right now is to wait for some GHC dev to
 have a
 look at this.

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



More information about the Glasgow-haskell-bugs mailing list