#3079: LANGUAGE pragma fails if it falls on a 1024-byte boundary
-------------------------------+--------------------------------------------
Reporter: Deewiant | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 6.10.1
Severity: critical | Resolution:
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-------------------------------+--------------------------------------------
Comment (by Deewiant):
The culprit is `getOptions'` in `compiler/main/HeaderInfo.hs`. The
function has a mechanism of indicating that it wants more input but it
isn't doing it properly in this case. I'm not familiar enough with the
system to be able to fix it, but it seems to me that modifying the
definition of `parseLanguage` (in the `where` clause) somehow should
suffice.
Note that the same function parses `OPTION` pragmas, which do work
correctly even if they fall on a 1024-byte boundary.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3079#comment:2>
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