#3079: LANGUAGE pragma fails if it falls on a 1024-byte boundary
----------------------------------+-----------------------------------------
    Reporter:  Deewiant           |        Owner:  igloo           
        Type:  merge              |       Status:  new             
    Priority:  normal             |    Milestone:  6.10.2          
   Component:  Compiler (Parser)  |      Version:  6.10.1          
    Severity:  critical           |   Resolution:                  
    Keywords:                     |   Difficulty:  Unknown         
    Testcase:                     |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |  
----------------------------------+-----------------------------------------
Changes (by simonmar):

  * owner:  simonmar => igloo
  * type:  bug => merge

Comment:

 Fixed:

 {{{
 Thu Mar 12 14:11:03 GMT 2009  Simon Marlow <[email protected]>
   * FIX #3079, dodgy parsing of LANGUAGE pragmas
   I ended up rewriting this horrible bit of code, using (yikes) lazy I/O
   to slurp in the source file a chunk at a time.  The old code tried to
   read the file a chunk at a time, but failed with LANGUAGE pragmas
   because the parser for LANGUAGE has state and the state wasn't being
   saved between chunks.  We're still closing the Handle eagerly, so
   there shouldn't be any problems here.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3079#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to