[project @ 2003-07-28 12:04:27 by simonpj] --------------------------   Fix an obscure but long-standing bug in Type.applyTys 	   --------------------------
[project @ 2003-07-28 12:04:27 by simonpj]
--------------------------
  Fix an obscure but long-standing bug in Type.applyTys
	   --------------------------

The interesting case, which previously killed GHC 6.0, is this
	applyTys (forall a.a) [forall b.b, Int]
This really can happen, via dressing up polymorphic types with newtype
clothing.  Here's an example:
	newtype R = R (forall a. a->a)
	foo = case undefined :: R of

Test simplCore/should_compile/simpl0009 uses this as a test case.

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