Don't dump floated bindings just outside a lambda
Don't dump floated bindings just outside a lambda

We do not want the FloatOut pass to transform
	f = \x. e
to
	f = let lvl = ... in \x.e

The arity pinned on f isn't right any more; and see
Note [Floating out of RHSs].

Core Lint is now spotting the arity lossage (for a letrec), which is
how I spotted this bug.

I also re-jigged the code around floatBind; it's a bit tidier now.
  


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