Fix freezing on bare ')' with alternative layout rule (#8431)
Fix freezing on bare ')' with alternative layout rule (#8431)

Patch by errge

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