[GHC] #12414: Ill-formed or incorrect multiline string in compiler/main/GHC.hs

GHC ghc-devs at haskell.org
Thu Jul 21 11:34:45 UTC 2016


#12414: Ill-formed or incorrect multiline string in compiler/main/GHC.hs
-------------------------------------+-------------------------------------
        Reporter:  ifigueroap        |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:  invalid           |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by malcolmw):

 Indeed, cpphs only lexes the contents of CPP directives as C.  It lexes
 all other text as Haskell.  This is entirely intentional, and is designed
 to work around numerous issues people have with traditional cpp doing the
 wrong thing with otherwise-correct Haskell source.

 I would suggest that ghc source files should not be relying on these bad
 features of cpp.  What next?  /* */ style comments?

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


More information about the ghc-tickets mailing list