Skip to content

Use lookupOccRn_maybe in TH.lookupName

sheaf requested to merge sheaf/ghc:T24293 into master

When looking up a value, we want to be able to find both variables and record fields. So we should not use the lookupSameOccRn_maybe function, as we can't know ahead of time which record field namespace a record field with the given textual name will belong to.

Merge request reports