Renamer now preserves location for IEThingWith list items
Prior to this, in the RenamedSource for module Renaming.RenameInExportedType ( MyType (NT) ) where data MyType = MT Int | NT The (NT) was given the location of MyType earlier on the line in the export list. Also the location was discarded for any field labels, and replaced with a `noLoc`. Test Plan: ./validate Reviewers: bgamari, austin Reviewed By: bgamari Subscribers: rwbarton, thomie GHC Trac Issues: #14189 Differential Revision: https://phabricator.haskell.org/D3968
Showing
- compiler/typecheck/TcRnExports.hs 19 additions, 18 deletionscompiler/typecheck/TcRnExports.hs
- testsuite/tests/parser/should_compile/T14189.hs 6 additions, 0 deletionstestsuite/tests/parser/should_compile/T14189.hs
- testsuite/tests/parser/should_compile/T14189.stderr 135 additions, 0 deletionstestsuite/tests/parser/should_compile/T14189.stderr
- testsuite/tests/parser/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/parser/should_compile/all.T
Loading
Please register or sign in to comment