[GHC] #14113: Error message carets point at the wrong places in the presence of CPP macros

GHC ghc-devs at haskell.org
Mon Aug 14 19:34:21 UTC 2017


#14113: Error message carets point at the wrong places in the presence of CPP
macros
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Poor/confusing    |  Unknown/Multiple
  error message                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Rufflewind):

 The issue is similar to #13388 but, unlike hsc2hs, my understanding is
 that cpp doesn't fall under the purview of the GHC project (yet?), so it's
 not possible to coerce it into outputting column information.

 One could prevent the caret from pointing past the actual line, but that
 only masks the problem under certain circumstances.

 Another option is to simply not show the caret if cpp is involved.

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


More information about the ghc-tickets mailing list