[GHC] #10768: Location information of LHsModule is incorrect

#10768: Location information of LHsModule is incorrect -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.10.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Incorrect Unknown/Multiple | warning at compile-time Test Case: | Blocked By: Blocking: | Related Tickets: #597 Differential Revisions: | -------------------------------------+------------------------------------- The location assigned by the parser to `LHsModule`s is incorrect: it is a point span at (1,0) rather then a span encompassing the entire file. This was taken from #597, which also included a number of other similar issues, all of which are now resolved. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10768 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10768: Location information of LHsModule is incorrect -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.10.2 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: #597 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * cc: mpickering, alanz (added) * component: Compiler => Compiler (Parser) Comment: CC the parser experts. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10768#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10768: Location information of LHsModule is incorrect -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.10.2 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: #597 | Differential Revisions: -------------------------------------+------------------------------------- Comment (by alanz): I seem to recall questioning this when working on the API Annotations, and there was some reason. I think it had to do with using the parser to pick up the enabled extensions, and not wanting to force a load of the whole file. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10768#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC