Fix checking of shadowed names (fixes Trac #8499)
Fix checking of shadowed names (fixes Trac #8499)

anton-dessiatov/ghc,siddhanathan/ghc,vikraman/ghc,anton-dessiatov/ghc,shlevy/ghc,da-x/ghc,tjakway/ghcjvm,hferreiro/replay,urbanslug/ghc,tjakway/ghcjvm,nushio3/ghc,sdiehl/ghc,TomMD/ghc,vTurbine/ghc,olsner/ghc,shlevy/ghc,mettekou/ghc,spacekitteh/smcghc,anton-dessiatov/ghc,shlevy/ghc,bitemyapp/ghc,sdiehl/ghc,ml9951/ghc,mettekou/ghc,green-haskell/ghc,shlevy/ghc,ryantm/ghc,shlevy/ghc,shlevy/ghc,fmthoma/ghc,sgillespie/ghc,ghc-android/ghc,wxwxwwxxx/ghc,gcampax/ghc,mcschroeder/ghc,hferreiro/replay,nkaretnikov/ghc,mettekou/ghc,shlevy/ghc,tjakway/ghcjvm,nushio3/ghc,vTurbine/ghc,urbanslug/ghc,oldmanmike/ghc,nkaretnikov/ghc,vikraman/ghc,ezyang/ghc,mfine/ghc,mfine/ghc,hferreiro/replay,GaloisInc/halvm-ghc,da-x/ghc,GaloisInc/halvm-ghc,anton-dessiatov/ghc,holzensp/ghc,ml9951/ghc,nkaretnikov/ghc,ezyang/ghc,elieux/ghc,jstolarek/ghc,sgillespie/ghc,christiaanb/ghc,tibbe/ghc,TomMD/ghc,lukexi/ghc-7.8-arm64,gridaphobe/ghc,vTurbine/ghc,forked-upstream-packages-for-ghcjs/ghc,bitemyapp/ghc,nkaretnikov/ghc,bitemyapp/ghc,vikraman/ghc,snoyberg/ghc,ghc-android/ghc,sgillespie/ghc,ghc-android/ghc,AlexanderPankiv/ghc,snoyberg/ghc,olsner/ghc,GaloisInc/halvm-ghc,mcschroeder/ghc,da-x/ghc,siddhanathan/ghc,nushio3/ghc,wxwxwwxxx/ghc,vTurbine/ghc,elieux/ghc,lukexi/ghc-7.8-arm64,mfine/ghc,anton-dessiatov/ghc,nathyong/microghc-ghc,sdiehl/ghc,snoyberg/ghc,anton-dessiatov/ghc,fmthoma/ghc,ghc-android/ghc,siddhanathan/ghc,acowley/ghc,christiaanb/ghc,urbanslug/ghc,christiaanb/ghc,christiaanb/ghc,mettekou/ghc,vTurbine/ghc,GaloisInc/halvm-ghc,fmthoma/ghc,holzensp/ghc,TomMD/ghc,nkaretnikov/ghc,mettekou/ghc,lukexi/ghc,ml9951/ghc,olsner/ghc,wxwxwwxxx/ghc,acowley/ghc,sgillespie/ghc,mfine/ghc,siddhanathan/ghc,oldmanmike/ghc,wxwxwwxxx/ghc,forked-upstream-packages-for-ghcjs/ghc,ezyang/ghc,gridaphobe/ghc,gridaphobe/ghc,TomMD/ghc,ryantm/ghc,nathyong/microghc-ghc,frantisekfarka/ghc-dsi,AlexanderPankiv/ghc,gcampax/ghc,siddhanathan/ghc,olsner/ghc,nkaretnikov/ghc,vikraman/ghc,nathyong/microghc-ghc,hferreiro/replay,spacekitteh/smcghc,olsner/ghc,mcschroeder/ghc,holzensp/ghc,nushio3/ghc,wxwxwwxxx/ghc,ghc-android/ghc,ryantm/ghc,anton-dessiatov/ghc,sdiehl/ghc,gridaphobe/ghc,sdiehl/ghc,lukexi/ghc,vTurbine/ghc,forked-upstream-packages-for-ghcjs/ghc,frantisekfarka/ghc-dsi,green-haskell/ghc,AlexanderPankiv/ghc,snoyberg/ghc,gridaphobe/ghc,elieux/ghc,ml9951/ghc,mcschroeder/ghc,elieux/ghc,vikraman/ghc,green-haskell/ghc,TomMD/ghc,nkaretnikov/ghc,spacekitteh/smcghc,fmthoma/ghc,christiaanb/ghc,nathyong/microghc-ghc,GaloisInc/halvm-ghc,urbanslug/ghc,jstolarek/ghc,gcampax/ghc,da-x/ghc,sgillespie/ghc,gcampax/ghc,frantisekfarka/ghc-dsi,lukexi/ghc-7.8-arm64,green-haskell/ghc,urbanslug/ghc,vikraman/ghc,olsner/ghc,tjakway/ghcjvm,tjakway/ghcjvm,bitemyapp/ghc,tibbe/ghc,forked-upstream-packages-for-ghcjs/ghc,wxwxwwxxx/ghc,oldmanmike/ghc,gridaphobe/ghc,gcampax/ghc,oldmanmike/ghc,elieux/ghc,mettekou/ghc,sgillespie/ghc,oldmanmike/ghc,acowley/ghc,olsner/ghc,frantisekfarka/ghc-dsi,urbanslug/ghc,gcampax/ghc,sdiehl/ghc,lukexi/ghc,spacekitteh/smcghc,tjakway/ghcjvm,ryantm/ghc,hferreiro/replay,spacekitteh/smcghc,urbanslug/ghc,nushio3/ghc,ml9951/ghc,jstolarek/ghc,tibbe/ghc,forked-upstream-packages-for-ghcjs/ghc,nathyong/microghc-ghc,ryantm/ghc,GaloisInc/halvm-ghc,da-x/ghc,lukexi/ghc,holzensp/ghc,TomMD/ghc,nathyong/microghc-ghc,christiaanb/ghc,vikraman/ghc,da-x/ghc,frantisekfarka/ghc-dsi,ghc-android/ghc,snoyberg/ghc,sgillespie/ghc,ezyang/ghc,forked-upstream-packages-for-ghcjs/ghc,hferreiro/replay,mcschroeder/ghc,fmthoma/ghc,siddhanathan/ghc,AlexanderPankiv/ghc,ezyang/ghc,acowley/ghc,ml9951/ghc,tjakway/ghcjvm,elieux/ghc,oldmanmike/ghc,lukexi/ghc,vTurbine/ghc,ml9951/ghc,snoyberg/ghc,jstolarek/ghc,gridaphobe/ghc,tibbe/ghc,wxwxwwxxx/ghc,christiaanb/ghc,oldmanmike/ghc,lukexi/ghc-7.8-arm64,ghc-android/ghc,gcampax/ghc,ezyang/ghc,nushio3/ghc,ml9951/ghc,bitemyapp/ghc,acowley/ghc,fmthoma/ghc,holzensp/ghc,fmthoma/ghc,mfine/ghc,AlexanderPankiv/ghc,elieux/ghc,mcschroeder/ghc,tibbe/ghc,mcschroeder/ghc,GaloisInc/halvm-ghc,forked-upstream-packages-for-ghcjs/ghc,ezyang/ghc,nathyong/microghc-ghc,AlexanderPankiv/ghc,jstolarek/ghc,TomMD/ghc,mettekou/ghc,acowley/ghc,sdiehl/ghc,snoyberg/ghc,green-haskell/ghc,mfine/ghc,AlexanderPankiv/ghc,da-x/ghc,acowley/ghc,hferreiro/replay,nushio3/ghc,mfine/ghc,lukexi/ghc-7.8-arm64,siddhanathan/ghc