summaryrefslogtreecommitdiff
path: root/compiler/GHC/Stg/InferTags/Rewrite.hs
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2022-03-26 18:55:30 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-28 19:24:04 -0400
commit2c12627caba908153bf0af92459d08e399aa8aad (patch)
treef7ea53070f9d233f4bb1372fa530c73fd80181f8 /compiler/GHC/Stg/InferTags/Rewrite.hs
parent8229885cb6a9f78ab09468f3797e3ec48ea24f82 (diff)
downloadhaskell-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/Stg/InferTags/Rewrite.hs')
0 files changed, 0 insertions, 0 deletions