EPA: Backport required changes from master to GHC 9.10 #1

This MR backports the remaining changes needed for ghc-exactprint to operate for GHC 9.10

It includes the following merge requests

I have confirmed that each one passes tests locally. Hopefully these are the last changes we need before releasing, but more changes may show up from round trip testing on hackage which I am now starting.

Merge request reports

Loading