Pretty: reformat using style from libraries/pretty (#10735)
Pretty: reformat using style from libraries/pretty (#10735)

This commit copies the code structure (what goes where), whitespace layout
and comments from libraries/pretty/src/Text/PrettyPrint/HughesPJ.hs,
with the intention to be able to later more easily compare the two
files, and port bug fixes.

I'm sorry this messes up git blame history, but there's no other way.

mfine/ghc,snoyberg/ghc,da-x/ghc,snoyberg/ghc,gridaphobe/ghc,tjakway/ghcjvm,tjakway/ghcjvm,siddhanathan/ghc,wxwxwwxxx/ghc,TomMD/ghc,mettekou/ghc,acowley/ghc,sgillespie/ghc,sgillespie/ghc,siddhanathan/ghc,mcschroeder/ghc,mettekou/ghc,mfine/ghc,shlevy/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,TomMD/ghc,shlevy/ghc,ezyang/ghc,nushio3/ghc,nkaretnikov/ghc,olsner/ghc,mfine/ghc,sdiehl/ghc,sdiehl/ghc,elieux/ghc,wxwxwwxxx/ghc,ghc-android/ghc,snoyberg/ghc,anton-dessiatov/ghc,gridaphobe/ghc,TomMD/ghc,elieux/ghc,sgillespie/ghc,TomMD/ghc,vTurbine/ghc,olsner/ghc,wxwxwwxxx/ghc,vTurbine/ghc,mcschroeder/ghc,acowley/ghc,TomMD/ghc,wxwxwwxxx/ghc,vTurbine/ghc,mfine/ghc,sgillespie/ghc,oldmanmike/ghc,ezyang/ghc,mfine/ghc,ml9951/ghc,gridaphobe/ghc,AlexanderPankiv/ghc,ghc-android/ghc,AlexanderPankiv/ghc,vikraman/ghc,AlexanderPankiv/ghc,tjakway/ghcjvm,shlevy/ghc,mcschroeder/ghc,olsner/ghc,tjakway/ghcjvm,anton-dessiatov/ghc,nushio3/ghc,GaloisInc/halvm-ghc,olsner/ghc,mcschroeder/ghc,nkaretnikov/ghc,sdiehl/ghc,elieux/ghc,ml9951/ghc,sdiehl/ghc,ezyang/ghc,acowley/ghc,AlexanderPankiv/ghc,elieux/ghc,sgillespie/ghc,da-x/ghc,oldmanmike/ghc,acowley/ghc,sdiehl/ghc,mettekou/ghc,ghc-android/ghc,tjakway/ghcjvm,mfine/ghc,shlevy/ghc,mcschroeder/ghc,sgillespie/ghc,mettekou/ghc,nushio3/ghc,AlexanderPankiv/ghc,nushio3/ghc,elieux/ghc,vTurbine/ghc,ml9951/ghc,da-x/ghc,oldmanmike/ghc,anton-dessiatov/ghc,acowley/ghc,da-x/ghc,sdiehl/ghc,mettekou/ghc,shlevy/ghc,elieux/ghc,anton-dessiatov/ghc,vikraman/ghc,oldmanmike/ghc,vTurbine/ghc,ezyang/ghc,GaloisInc/halvm-ghc,oldmanmike/ghc,mcschroeder/ghc,sdiehl/ghc,ghc-android/ghc,gridaphobe/ghc,acowley/ghc,oldmanmike/ghc,mettekou/ghc,nkaretnikov/ghc,nkaretnikov/ghc,snoyberg/ghc,mfine/ghc,da-x/ghc,wxwxwwxxx/ghc,AlexanderPankiv/ghc,snoyberg/ghc,nushio3/ghc,olsner/ghc,ml9951/ghc,mcschroeder/ghc,vikraman/ghc,wxwxwwxxx/ghc,ml9951/ghc,elieux/ghc,siddhanathan/ghc,da-x/ghc,gridaphobe/ghc,sgillespie/ghc,vikraman/ghc,oldmanmike/ghc,AlexanderPankiv/ghc,GaloisInc/halvm-ghc,ghc-android/ghc,GaloisInc/halvm-ghc,vikraman/ghc,da-x/ghc,nkaretnikov/ghc,mettekou/ghc,nushio3/ghc,gridaphobe/ghc,olsner/ghc,siddhanathan/ghc,nushio3/ghc,ezyang/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,anton-dessiatov/ghc,vikraman/ghc,GaloisInc/halvm-ghc,snoyberg/ghc,GaloisInc/halvm-ghc,gridaphobe/ghc,TomMD/ghc,ghc-android/ghc,anton-dessiatov/ghc,siddhanathan/ghc,tjakway/ghcjvm,vTurbine/ghc,anton-dessiatov/ghc,ml9951/ghc,TomMD/ghc,acowley/ghc,ezyang/ghc,snoyberg/ghc,ghc-android/ghc,siddhanathan/ghc,olsner/ghc,siddhanathan/ghc,nkaretnikov/ghc,shlevy/ghc,vTurbine/ghc,ml9951/ghc,shlevy/ghc,ezyang/ghc,vikraman/ghc,ml9951/ghc