summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings/Default.hs-boot
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2022-12-04 15:30:21 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-12-05 05:18:50 -0500
commit1a767fa359d22ca7637af41e29434e76487c3f21 (patch)
tree61bf8417aee7d2b2de223a658cda431d26821969 /hadrian/src/Settings/Default.hs-boot
parent4251226448f34403b07822f3017845c4855f4dea (diff)
downloadhaskell-1a767fa359d22ca7637af41e29434e76487c3f21.tar.gz
Add BufSpan to EpaLocation (#22319, #22558)
The key part of this patch is the change to mkTokenLocation: - mkTokenLocation (RealSrcSpan r _) = TokenLoc (EpaSpan r) + mkTokenLocation (RealSrcSpan r mb) = TokenLoc (EpaSpan r mb) mkTokenLocation used to discard the BufSpan, but now it is saved and can be retrieved from LHsToken or LHsUniToken. This is made possible by the following change to EpaLocation: - data EpaLocation = EpaSpan !RealSrcSpan + data EpaLocation = EpaSpan !RealSrcSpan !(Strict.Maybe BufSpan) | ... The end goal is to make use of the BufSpan in Parser/PostProcess/Haddock.
Diffstat (limited to 'hadrian/src/Settings/Default.hs-boot')
0 files changed, 0 insertions, 0 deletions