DynFlags: remove use of sdocWithDynFlags from GHC.Stg.* (#17957)

* add StgPprOpts datatype
* remove Outputable instances for types that need `StgPprOpts` to be
  pretty-printed and explicitly call type specific ppr functions
* add default `panicStgPprOpts` for panic messages (when it's not
  convenient to thread StgPprOpts or DynFlags down to the ppr function
  call)
24 jobs for !3656 with hsyl20/dynflags/stg in 398 minutes and 53 seconds (queued for 3 seconds)
detached
Status Job ID Name Coverage
  Lint
passed #388313
lint
ghc-linters

00:00:15

passed #388314
lint
lint-linters

00:00:14

passed #388317
lint
lint-submods

00:00:21

passed #388315
lint
lint-testsuite

00:00:17

passed #388316
lint
typecheck-testsuite

00:00:15

 
  Quick Build
passed #388318
x86_64-linux
hadrian-ghc-in-ghci

00:13:47

 
  Build
passed #388319
x86_64-linux
validate-x86_64-linux-deb9-hadrian

01:00:37

 
  Full Build
failed #388322
aarch64-linux allowed to fail
validate-aarch64-linux-deb9

03:47:24

failed #388323
armv7-linux allowed to fail
validate-armv7-linux-deb9

03:33:04

passed #388324
x86_64-linux
validate-i386-linux-deb9

01:54:21

failed #388331
new-x86_64-windows test allowed to fail
validate-i386-windows

passed #388467
x86_64-darwin
validate-x86_64-darwin

01:10:47

passed #388325
x86_64-linux
validate-x86_64-linux-deb9-debug

02:10:33

passed #388327
x86_64-linux
validate-x86_64-linux-deb9-dwarf

01:45:30

passed #388326
x86_64-linux
validate-x86_64-linux-deb9-integer-simple

01:23:26

passed #388320
x86_64-linux
validate-x86_64-linux-deb9-unreg-hadrian

03:12:05

passed #388328
x86_64-linux
validate-x86_64-linux-fedora27

01:37:05

failed #388330
new-x86_64-windows test allowed to fail
validate-x86_64-windows

failed #388329
new-x86_64-windows test allowed to fail
validate-x86_64-windows-hadrian

03:20:52

failed #388321
x86_64-darwin
validate-x86_64-darwin

01:06:01

 
  Cleanup
passed #388332
x86_64-darwin
cleanup-darwin

00:00:16

 
  Packaging
failed #388333
x86_64-linux allowed to fail
doc-tarball

00:00:45

 
  Testing
manual #388334
x86_64-linux allowed to fail manual
hackage
passed #388335
x86_64-linux
perf-nofib

00:24:20

 
Name Stage Failure
failed
validate-aarch64-linux-deb9 Full Build
Uploading artifacts...
ghc-aarch64-linux-deb9.tar.xz: found 1 matching files

junit.xml: found 1 matching files

performance-metrics.tsv: found 1 matching files

Uploading artifacts to coordinator... ok
id=388322 responseStatus=201 Created token=ddz4yexw
Uploading artifacts...
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=388322 responseStatus=201 Created token=ddz4yexw
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows Full Build There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log
failed
validate-i386-windows Full Build There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log
failed
doc-tarball Packaging
Entering 'utils/haddock'
Entering 'utils/hsc2hs'
Downloading artifacts
Downloading artifacts for validate-x86_64-linux-deb9-debug (388325)...
Downloading artifacts from coordinator... ok
id=388325 responseStatus=200 OK token=G5T6ct5s
Executing "step_script" stage of the job script
$ if [ ! -f "$LINUX_BINDIST" ]; then # collapsed multi-line command
Error: ghc-x86_64-mingw32.tar.xz does not exist. Did the 64-bit Windows job fail?
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows-hadrian Full Build
GO version:   go1.13.8
Built: 2020-06-19T21:12:23+0000
OS/Arch: windows/amd64
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=4056 revision=6214287e version=13.1.0
junit.xml: found 1 matching files and directories

WARNING: Failed to load system CertPool: crypto/x509: system root pool is not available on Windows
Uploading artifacts as "junit" to coordinator... ok
id=388329 responseStatus=201 Created token=SBu5yGx6
ERROR: Job failed: exit status 1
failed
validate-armv7-linux-deb9 Full Build
Uploading artifacts...
ghc-armv7-linux-deb9.tar.xz: found 1 matching files

junit.xml: found 1 matching files

performance-metrics.tsv: found 1 matching files

Uploading artifacts to coordinator... ok
id=388323 responseStatus=201 Created token=GK6nrXtY
Uploading artifacts...
junit.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=388323 responseStatus=201 Created token=GK6nrXtY
ERROR: Job failed: exit code 1