summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2015-10-30 09:41:47 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2015-10-30 09:45:49 +0000
commit3e94842d4d1258fbd6a1202bf74d41ce1d01c753 (patch)
tree703ec106f907a72be0d4349a31ca33c44651ee48 /testsuite/tests/deSugar
parent9376249b6b78610db055a10d05f6592d6bbbea2f (diff)
downloadhaskell-3e94842d4d1258fbd6a1202bf74d41ce1d01c753.tar.gz
Record usage information using GlobalRdrElt
This patch implements an improvment that I've wanted to do for ages, but never gotten around to. Unused imports are computed based on how imported entities occur (qualified, unqualified). This info was accumulated in tcg_used_rdrnames :: Set RdrName. But that was a huge pain, and it got worse when we introduced duplicate record fields. The Right Thing is to record tcg_used_gres :: [GlobalRdrElt], which records the GRE *after* filtering with pickGREs. See Note [GRE filtering] in RdrName. This is much, much bette. This patch deletes quite a bit of code, and is conceptually much easier to follow. Hooray. There should be no change in functionality.
Diffstat (limited to 'testsuite/tests/deSugar')
0 files changed, 0 insertions, 0 deletions