[GHC] #12414: Ill-formed or incorrect multiline string in compiler/main/GHC.hs
GHC
ghc-devs at haskell.org
Wed Jul 20 17:25:35 UTC 2016
#12414: Ill-formed or incorrect multiline string in compiler/main/GHC.hs
-------------------------------------+-------------------------------------
Reporter: ifigueroap | Owner:
Type: bug | Status: new
Priority: lowest | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Other
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Dear all,
After trying to (indirectly) parse GHC.hs using hothasktags, I kept
getting an "Illegal character in string gap" error. After reconstructing
the file using cpphs I found that the issue is caused by an incorrect
multiline string in the raw (i.e. before cpp includes) GHC.hs, that trips
the (perhaps stricter?) parser in haskell-src-exts...
The following part of the code:
{{{#!hs
Nothing -> panic "compileToCoreModule: target FilePath not found in\
module dependency graph"
}}}
should be
{{{#!hs
Nothing -> panic "compileToCoreModule: target FilePath not found in\
\module dependency graph"
}}}
It seems the issue goes back to several other versions of the file. Of
course it is not really a big deal, but it was hard to trigger (try to
parse the file with haskell-src-exts), and to hunt!!
Best regards
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12414>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list