The implementation of "weak loop breakers" was being too clever
The implementation of "weak loop breakers" was being too clever

The too-clever-ness meant that a variable could just go out
of scope; this happened in building System.Consol.Haskeline.Backend.Terminfo
in the haskeline library.

This patch makes the weak-loopbreaker computation simpler, and a bit
more conserative; which fixes the bug, and doesn't make any difference
to the code in the end.

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