[GHC] #11019: ApiAnnotations: Make all RdrName occurences Located
GHC
ghc-devs at haskell.org
Mon Oct 26 10:42:17 UTC 2015
#11019: ApiAnnotations: Make all RdrName occurences Located
-------------------------------------+-------------------------------------
Reporter: alanz | Owner: alanz
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 7.10.2
Keywords: | Operating System: Unknown/Multiple
ApiAnnotations |
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
At the moment the API Annotations can only be used on the `ParsedSource`,
as there are changes made to the `RenamedSource` that prevent it from
being used to round trip source code.
It is possible to build a map from every `Located Name` in the
`RenamedSource` from its location to the `Name`, which can then be used
when resolved names are required when changing the `ParsedSource`.
However, there are instances where the identifier is not located,
specifically
{{{#!hs
(GHC.VarPat name)
(GHC.HsVar name)
(GHC.UserTyVar name)
(GHC.HsTyVar name)
}}}
Replace each of the `name` types above with `(Located name)`
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11019>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list