[GHC] #3645: Layout and pragmas

GHC cvs-ghc at haskell.org
Tue Dec 14 09:52:31 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 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?

 It would be nice to allow entering into bol state on \n(as before any
 patches) and exit it on some condition(without hardcoding "#-}") so that
 "#-}" can be matched. If it is not possible, I support the whitespace
 solution.

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



More information about the Glasgow-haskell-bugs mailing list