[GHC] #8607: Invalid location reported for type constructors
GHC
ghc-devs at haskell.org
Fri Dec 27 03:39:32 UTC 2013
#8607: Invalid location reported for type constructors
-------------------------------------+------------------------------------
Reporter: edsko | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Richard Eisenberg <eir@…>):
In [changeset:"e4afeedc5b8ac0f48cbeac09aa702c8d10433cdb/ghc"]:
{{{
#!CommitTicketReference repository="ghc"
revision="e4afeedc5b8ac0f48cbeac09aa702c8d10433cdb"
Fix #8607.
The solution (after many false starts) is to change the behavior of
hsLTyClDeclBinders. The idea is that the locations of the names that
the parser generates should really be the names' locations, unlike
what was done in 1745779... But, when the renamer is creating Names
from the RdrNames, the locations stored in the Names should be the
declarations' locations. This is now achieved in hsLTyClDeclBinders,
which returns [Located name], but the location is that of the
*declaration*, not the name itself.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8607#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list