[GHC] #3645: Layout and pragmas

GHC cvs-ghc at haskell.org
Mon Dec 13 11:43:04 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):

 Matching all whitespaces is redundant, although it looks not as hacky.
 Normally whitespaces are matched in another place. We have to match \n
 only to prevent entering into bol state. I did some more tracing and found
 that in function do_bol clause

 {{{
             GT -> do
                 _ <- popLexState
                 lexToken
 }}}

 is executed. I think that in proper solution lexToken should match "#-}"
 and close the pragma.

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



More information about the Glasgow-haskell-bugs mailing list