[GHC] #13917: The line on which to locate the error indication is bad.

GHC ghc-devs at haskell.org
Fri Jul 7 06:58:19 UTC 2017


#13917: The line on which to locate the error indication is bad.
-------------------------------------+-------------------------------------
        Reporter:  vanto             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  error/warning at compile-time      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by vanto):

 Replying to [[span(style=color: #FF0000, goldfire )]]\\
 OK. It is preferable to indicate the line where there is the syntax error.
 And the compiler does so in the majority of cases.
 Here what is the best solution?\\
 If the error is on the line {{{main}}}, do you move {{{main}}} to the
 right of two spaces? And so you create disorder in your code, or you
 correct the line above? If you correct the line above, GHC should indicate
 this line for correction. But perhaps this is too difficult to code?\\
 In this specific case what do you suggest?

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


More information about the ghc-tickets mailing list