Complain sensibly if you try to use scoped type variables in Template Haskell
Complain sensibly if you try to use scoped type variables in Template Haskell

This fixes Trac #2024; worth merging onto 6.8 branch.


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