diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2022-03-26 18:55:30 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-03-28 19:24:04 -0400 |
commit | 2c12627caba908153bf0af92459d08e399aa8aad (patch) | |
tree | f7ea53070f9d233f4bb1372fa530c73fd80181f8 /compiler/GHC/Rename/Module.hs | |
parent | 8229885cb6a9f78ab09468f3797e3ec48ea24f82 (diff) | |
download | haskell-2c12627caba908153bf0af92459d08e399aa8aad.tar.gz |
Consistently attach SrcSpans to sub-expressions in TH splices
Before, `GHC.ThToHs` was very inconsistent about where various sub-expressions
would get the same `SrcSpan` from the original TH splice location or just a
generic `noLoc` `SrcSpan`. I have ripped out all uses of `noLoc` in favor of
the former instead, and I have added a
`Note [Source locations within TH splices]` to officially enshrine this
design choice.
Fixes #21299.
Diffstat (limited to 'compiler/GHC/Rename/Module.hs')
0 files changed, 0 insertions, 0 deletions