
#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 goldfire): In the case of a concrete syntax error (as opposed to a type error), I believe that the location of the error is the first character that fails to parse. In the case of the original program, that character is the `m` in the first occurrence of `main`, as reported by GHC. GHC does ''not'' try to find the line where the fix needs to be applied, and I don't think it should, for parse errors. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13917#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler