Make Foldable's foldr1 and foldl1 defaults lazier
Make Foldable's foldr1 and foldl1 defaults lazier

Fixes #9742. Previously, `foldr1` as applied to a list-like
structure would be strict in the spine, and `foldl1` would
be strict in the spine of a snoc-list.

See also

 https://www.haskell.org/pipermail/libraries/2014-October/024035.html

Differential Revision: https://phabricator.haskell.org/D423

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