Fix Trac #2799: TcType.isOverloadedTy
Fix Trac #2799: TcType.isOverloadedTy

A missing case (for equality predicates) in isOverloadedTy make
bindInstsOfLocalFuns/Pats do the wrong thing.  Core Lint nailed it.

Merge to 6.10 branch.


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